The prehistory period began several million years ago with the appearance of the first human beings and lasted until the invention of writing around 5,000 years ago. It is divided into two periods: the Paleolithic and Neolithic. The Paleolithic was the longest period, starting with the first humans and ending around 10,000 BC with the discovery of farming. During this time, humans were nomadic hunter-gatherers who lived in small groups in caves or simple shelters. The Neolithic began around 10,000 BC following the discovery of agriculture, and ended around 3,000 BC with the invention of writing. During this period, humans became sedentary, living in villages and farming the land, and developed new