The short answer
Humans have lived in a wide range of places for a very long time, but for most of that time people moved around rather than staying put. Early groups used temporary camps, caves and rock shelters. Only in the last 15,000 years or so, in some regions, did people begin to build durable houses and live in the same place year-round. Farming villages, then towns and cities, followed. The details vary a great deal from region to region, and many dates are still debated.
How archaeologists reconstruct where people lived
Habitation is read from traces left in the ground. These include hearths, post holes, stone tool scatters, animal bones, floors, walls and rubbish pits. Archaeologists map where these things sit relative to each other and ask whether they look like a short stop or a long stay. Methods such as radiocarbon dating give an approximate age for organic remains, and the age of a layer helps place a camp or house in time.
The evidence is uneven. Stone and fired clay survive well, while wood, hide and thatch usually do not. That means the earliest shelters are often known only from faint outlines or from a few surviving fragments.
Early camps and shelters
For hundreds of thousands of years, early humans and their relatives lived in small, mobile groups. Their camps were probably simple and short-lived: a fireplace, some windbreaks, and a place to work stone and butcher animals. Caves and rock overhangs offered ready-made protection, and we find a lot of evidence there partly because those places preserve things well. Our article on where did early humans take shelter and why covers this in more detail.
Ice Age hunter-gatherer dwellings
By the later Ice Age, in the last tens of thousands of years, there is clearer evidence of built structures. In some parts of Europe and Asia, people built huts using mammoth bones, wood and hides, which suited open, treeless landscapes. Elsewhere, sites with brush huts and hearths show that people returned to the same spot season after season. These were still hunter-gatherer communities, but they were investing more in where they lived.
Settling down
After the end of the last Ice Age, climate changed and some communities began to stay in one place for much longer. In parts of Southwest Asia, people built stone-based houses before farming was fully established, and later farming villages with mudbrick houses appeared. Settlements such as Çatalhöyük in present-day Turkey, which dates to roughly 9,000 years ago, show dense groups of houses packed together. Questions such as when did humans first make homes do not have a single answer, because it depends on what counts as a home.
Towns, cities and built environments
As populations grew, villages expanded into towns and later cities, with defenses, storage buildings, temples and public spaces. People started to build for permanence, which leads into the first buildings in history and into later topics such as monumental architecture and the history of building walls. Building materials, local climate and available labor all shaped what each community constructed.
Why the record is patchy
A site that was occupied for a few weeks may leave almost nothing, while a site occupied for centuries can leave a deep mound. Sea level rise has also drowned some coastal camps, and erosion and later building have destroyed others. So when we say a certain type of home appeared at a certain time, it really means that is the earliest evidence found so far.
Where to go next
If you are curious about particular questions, our articles on what humans existed 50,000 years ago and what age did cavemen have babies cover who lived in these early settings and how they lived day to day.