In situ formation of ceramic coatings on Q235 carbon steel was achieved by plasma electrolytic oxidation (PEO) in carbonate electrolyte and silicate electrolyte, respectively. The surface and cross-section morphology, phase and elemental composition of PEO coatings were examined by means of scanning electron microscopy (SEM), X-ray diffraction (XRD) and energy-dispersive X-ray spectroscopy (EDS). The bond strength of the coating was determined using a direct pull-off test. The hardness as well as tribological properties of the ceramic coating was primarily studied. The results indicated that the coating obtained in carbonate electrolyte was Fe 3 O 4 , while the coating achieved from silicate electrolyte was proved to be amorphous. Both kinds of coatings showed coarse and porous surface. The Fe 3 O 4 coatings obtained in carbonate electrolyte showed a high bonding strength to the substrate up to 20±2MPa and the value was 15±2MPa for the amorphous coatings obtained in carbonate electrolyte. The micro hardness of the amorphous coating and the Fe 3 O 4 coating was 1001Hv and 1413Hv, respectively, which was more than two and three times as that of the Q235 alloy substrate (415Hv). The friction coefficient exhibited by amorphous coating and Fe 3 O 4 coating was 0.13 and 0.11, respectively, both lower than the uncoated Q235 substrate which ranged from 0.17 to 0.35.