Ionic liquid, 1-ethylpyridinium chloride with a relative low melting point of 100 °C is used to control the morphological growth of CH3NH3PbI3 during the one-step deposition method for preparing efficient planar heterojunction perovskite solar cells.