Superconducting MgB2 films were prepared using magnesium chloride hexahydrate and boric acid electrolytes, by electrochemical deposition and post-annealing. Electrochemical deposition cell was composed of Ag plate as working electrode, Ag/Ag+ as reference electrode and Pt as counter electrode. Scanning electron microscopy showed the presence of hexagonal-shaped MgB2 crystallites and MgO phases in all the samples. X-ray diffraction analysis revealed 4 peaks of MgB2. The resistivity-temperature measurement showed the effect of annealing time on the critical transition temperature of the samples. The Tc of 39 K was observed in the films annealed at 300 degrees Centigrade for 120 minutes while Tc of 33K and 30 K were observed in samples annealed at 300 degrees Centigrade for 90 minutes