The carving of jack-o'-lanterns originated from the tradition of carving the faces of lost souls into hollowed out pumpkins and turnips. A candle was placed inside the carvings making the faces glow. The Halloween lanterns were placed on doorsteps to ward off evil spirits.
Thanks to :http://www.pumpkinmasters.com/halloween_facts.asp