When was Fire Invented?

Fire was invented way back when. All early forms of mankind used fire to keep warm or cook. Although matches were not invented until more present times, rubbing sticks or stones was the way to start fire back in the day of the caveman.