An electrochemical sensor based on molecularly imprinted polypyrrole membrane is reported for the determination of dapsone (DDS). The sensor was prepared by electropolymerization of pyrrole at a glassy carbon electrode in the presence of DDS as a template. The electropolymerization was performed in the presence of an aqueous solution of 0.1 M HCl, and 0.2 M pyrrole, with and without a template molecule (DDS) at a glassy carbon electrode using cyclic voltammetry. Some of the parameters, important to controlling the performance of the polypyrrole, were investigated and optimized, including the effects of pH, monomer and template concentrations, electropolymerization cycles. The molecularly imprinted film exhibited a high selectivity and sensitivity toward dapsone. The differential pulse voltammetry (DPV) peak current showed a linear dependence on the DDS concentration and a linear calibration curve was obtained in the range 1.0 μM to 110 μM of DDS with a correlation coefficient of 0.998 with a detection limit of 3.0 × 10 −7 M (S/N = 3). The electrode was successfully applied to the determine Dapsone in spiked human serum and urine.