To improve the quality of intraoperative and postoperative analgesia during spinal anesthesia, intrathecal opioids are used as adjuvant drugs in combination with local anesthetics. This study aimed to compare the intrathecal injection of ropivacaine-fentanyl with ropivacaine-sufentanil in terms of the duration of analgesia after cesarean section (CS). This randomized, double-blind clinical trial study was conducted on women referred to Imam Khomeini Hospital of Ahvaz City for elective CS in 2021. A total of 51 patients were randomly divided into 2 groups. The first group (n = 25) received ropivacaine (17.5 mg) + fentanyl (25 μg), while the second group (n = 26) received ropivacaine (17.5 mg) + sufentanil (2.5 μg) for spinal anesthesia. Eventually, several parameters were investigated, including the duration of sensory and motor block, duration of analgesia (based on the Visual Analog Scale (VAS)), hemodynamic parameters, and possible complications. The duration of surgery (P = 0.059) and the duration of motor block (P = 0.962) were not significantly different between the 2 groups. The mean duration of analgesia (from the time of entering recovery to reaching VAS = 3) was 203.12 ± 72.93 and 207.46 ± 69.59 minutes in the fentanyl and sufentanil groups, respectively (P = 0.658). Systolic and diastolic blood pressure (SBP/DBP) drops in minute 5 were observed more frequently in the sufentanil group than in the fentanyl group (P = 0.027 and P = 0.002, respectively). At the other time points, however, no significant difference was observed between the 2 groups in terms of hemodynamic variables (P > 0.05). Finally, the frequency of pruritus was higher in the sufentanil group than in the fentanyl group (26.9% vs. 4.0%; P = 0.024). Adding fentanyl or sufentanil to intrathecal ropivacaine provides a similar duration of analgesia. However, fentanyl was associated with better hemodynamic stability and a lower incidence of pruritus.