Prehistory began 3 million years ago and lasted until 3000 BC. During this time, humans were hunter-gatherers and began using tools like fire. The Stone Age followed, divided into the Paleolithic and Neolithic eras. In the Neolithic, humans transitioned to agriculture and permanent settlements. The Metal Ages saw the rise of copper, bronze and iron tools. Writing emerged around 3000 BC, marking the beginning of ancient civilizations like Egypt, Greece and Rome, which established governments, trade and important constructions. The Middle Ages in Europe lasted from 400-1500 AD between the fall of Rome and the Renaissance, defined by a feudal system and conflicts like the Crusades.