Spinal anesthesia is a big component of an anesthetist's toolset and is used commonly in anesthetic practices. A frequent problem following spinal anesthesia is shivering due to hypothermia. Its incidence is 0000-% if no prophylactic measures are taken. Hypothermia during an intraoperative period is caused by cold operating rooms, body cavity exposure, extremes of age, prolonged procedures, reduced metabolism, and direct inhibition by anesthetics. Objective: To compare the efficacy of ondansetron and dexmedetomidine in preventing shivering under spinal anesthesia. Setting: Armed Forces Institute of Urology. Study Design: Randomized control trial. Duration: 3 months. Materials and Methods: The selected patients were randomly allocated using computer-generated methods into 02 groups containing 50 patients each according to study drug. Ondansetron group (0.1mg/kg) (Group O), and Dexmedetomidine group (1mcg/1kg) (Group D). shivering incidences were noted at selected time intervals and rescue doses of pethidine were administered as required. Results: Our study shows that Group O had high mean shivering scores at 5, 30, and 4 minutes as compared to Group D. Conclusion: Our study concludes that dexmedetomidine provides better control of shivering than ondansetron under spinal anesthesia.