Direct electric curing (EC) is a new green curing method for cement-based materials that improves the early mechanical properties via the uniform high temperature produced by Joule heating. To understand the effects of EC and steam curing (SC) on the mechanical properties and microstructure of cement-based materials, the mortar was cured at different temperature-controlled curing regimes (40°C, 60°C and 80°C). Meanwhile, mechanical properties, hydrate phase and pore structure of specimens were investigated. The energy consumption of two curing methods was compared and analyzed. The results show that the EC specimens have better and more stable growth of mechanical strength. The pore structure of EC specimen is also better than that of SC specimen at different maintenance ages. However, the hydration degree and products of samples cured by EC are similar to that SC samples. The energy consumption of EC is lower than SC. This study provides an important technical support for the EC in the production of energy-saving and high early-strength concrete precast components.