This study compared the effect of two doses of ondansetron in the prevention of headache after spinal anesthesia. in this study, 180 pregnant women were randomly divided into 3 groups Patients in the first group of 8 mg ondansetron, 4 mg ondansetron in the second group and the third group received normal saline will be. The volume of material injected in each group will be equal by using of 5 ml normal saline and there is no apparent difference between them. Medications encoded by a person who is not involved in the study will be ready and patients and residents will be responsible for them an aware of the layout. Category Inclusion criteria were pregnant women 20 to 35 years old, ASA 1-2, body mass index less than 30, and patient exclusion criteria from study will be، cardiovascular disease, contraindications of spinal anesthesia. Oral and written consent will be obtained from all patients. the patient will be under spinal anesthesia with twelve milligrams of Marcaine. the patient will be suitable Positioning, nausea and vomiting, and hypotension in patients treated with atropine And ephedrine. The main variable in this study is a headache after spinal anesthesia which is usually 24 to 48 hours after the puncture of dura starts with the beat in the area of the frontal or occipital sense and often with photophobia, double vision, blurred vision, hearing loss and nausea and vomiting, then all necessary information will be gathered in the certain days of the patient And the study will be randomized and double-blind at the end of the study ondancetron may be used to control of headache after spinal anesthesia