Most people in ancient China could not afford to live in fancy houses. They lived in small houses made of mudbrick, with only one room and a dirt floor, or in larger compounds with a lot of people living in them. This was just the way most people in the Roman Empire or West Asia or Africa lived. It’s the way most people in the world still live today. In Northern China, the doors of these houses usually faced south, to keep out the cold north wind.
Rich people had fancier houses, and people also built fancy temples and palaces. All ancient Chinese architecture was built according to strict rules of design that made Chinese buildings follow the ideas of Taoism or other Chinese philosophies.
The first design idea was that buildings should be long and low rather than tall. They should seem almost to be hugging you. The roof would be held up by columns, and not by the walls; it should seem to be floating over the ground. A second design idea was symmetry. Both sides of the building should be the same, balanced, just as Taoism emphasized balance. Even as early as the Shang Dynasty, about 1500 BC, Chinese buildings looked pretty much like this, with curved tile roofs and long rows of pillars. Palaces of the Zhou Dynasty, and then the Qin Dynasty, continued in this same style.
The biggest change in Chinese architecture came during the Han Dynasty, in the 200s BC, when the new religion of Buddhism first came to China from India. Many Chinese Buddhists started to build pagodas to keep sacred things in. At first these pagodas were related to Indian buildings called stupas.
But under the Sui Dynasty , in the early 600s AD, the ideas of symmetry and balance that were important in Taoism became more important again. But people wanted more Buddhist pagodas too. During the Tang dynasty, architects designed even fancier Buddhist pagodas, with eight sides. One famous eight-sided stone pagoda is the White Pagoda at Chengde.
While the Mongol Yuan dynasty ruled China, about 1200-1300 AD, they built great palaces at Beijing, with many huge halls. The great architectural accomplishment of the Ming dynasty in the 1400s was to build the Forbidden City. That was a huge palace where the emperors lived. But the Forbidden City’s buildings still follow pretty much the same architectural rules as the palaces of the Shang Dynasty, three thousand years earlier.