A cave dweller, or troglodyte (not to be confused with troglobite), is a human being who inhabits a cave or the area beneath the overhanging rocks of a cliff.
Some prehistoric humans were cave dwellers, but most were not. (See "Homo" and "Human evolution".) Such early cave dwellers, and other prehistoric peoples, are also called cave men (the term also has other meanings). Despite the name, only a small portion of humanity has ever dwelt in caves: caves are rare across most of the world; most caves are dark, cold, and damp; other cave inhabitants, such as bears and cave bears, cave lions, and cave hyenas, also have made caves inhospitable for people.
The Grotte du Vallonnet, a cave in the French Riviera, was used by people approximately one million years ago. Although stone tools and the remains of eaten animals have been found in the cave, there is no indication that people dwelt in it.
Since about 750,000 years ago, the Zhoukoudian cave system, in Beijing, China, has been inhabited by various species of human being, including Peking Man (Homo erectus pekinensis) and modern humans (Homo sapiens sapiens).
Starting about 170,000 years ago, some Homo sapiens lived in some cave systems in what is now South Africa, such as Pinnacle Point and Diepkloof Rock Shelter. Caves were the ideal place to shelter from the midday sun in the equatorial regions. The stable temperatures of caves provided a cool habitat in summers and a warm, dry shelter in the winter.