Midazolam has only sedative properties. However, dexmedetomidine has both analgesic and sedative properties that may prolong the duration of sensory and motor block obtained with spinal anesthesia. This study was designed to compare intravenous dexmedetomidine with midazolam and placebo on spinal block duration, analgesia, and sedation in patients undergoing transurethral resection of the prostate.