The present invention discloses an electric fireplace having a humidifying device. The electric fireplace includes a casing. A flame imitation device, a heating device, an air purifying device, the humidifying device, and a touch control panel are provided in the casing. The electric fireplace is combined with the flame imitation device, the air purifying device, and the heating device to provide multiple functions. The user can watch the realistic flame and inhale fresh but not dry warm wind. The humidifying device includes a water container, a cotton rod, a fixing knob, an atomization plate, a hollow pipe, and a fog output box. The humidifying device delivers the water to the atomization plate through the cotton rod to generate atomized particles. The present invention has a simple structure and can be produced easily.