Chinese Ancient Architecture
Chinese architecture refers to a style of architecture that has taken shape in Asia over the centuries. The structural principles of Chinese architecture have remained largely unchanged, the main changes being only the decorative details. Since the Tang Dynasty, Chinese architecture has had a major influence on the architectural styles of Japan, Korea, and Vietnam. The architecture of China is as old as Chinese civilization. From every source of information - literary, graphic, and exemplary - there is strong evidence testifying to the fact that the Chinese have always employed an indigenous system of construction that has retained its principal characteristics from prehistoric times to the present day.
Architectural types
Commoner
As for the commoners, eg, bureaucrats, merchants or farmers, their houses tended to follow a set pattern: the centre of the building would be a shrine for the deities and the ancestors, which would also be used during festivities. On its two sides were bedrooms for the elders; the two wings of the building (known as "guardian dragons" by the Chinese) were for the junior members of the family, as well as the living room, the dining room, and the kitchen, although sometimes the living room could be very close to the center.
Sometimes the extended families became so large that one or even two extra pairs of "wings" had to be built. This resulted in a U-shaped building, with a courtyard suitable for farm work; merchants and bureaucrats, however, preferred to close off the front with an imposing front gate. All buildings were legally regulated, and the law held that the number of storeys, the length of the building and the colors used depended on the owner's class.
Imperial
There were certain architectural features that were reserved solely for buildings built for the Emperor of China. One example is the use of yellow roof tiles; yellow having been the Imperial color, yellow roof tiles still adorn most of the buildings within the Forbidden City. The Temple of Heaven, however, uses blue roof tiles to symbolize the sky. The roofs are almost invariably supported by brackets ("dougong"), a feature shared only with the largest of religious buildings. The wooden columns of the buildings, as well as the surface of the walls, tend to be red in color. Black is also a famous color often used in pagodas. They believe the gods are inspired by the black color to descend on to the earth. 
The Chinese dragon, an emblem reserved for Imperial China, was heavily used on Imperial architecture - on the roofs, on the beams and pillars, and on the doors. Only the buildings used by the imperial family were allowed to have nine jian (space between two columns); only the gates used by the Emperor could have five arches, with the centre one, of course, being reserved for the Emperor himself. The ancient Chinese favored the color red. The buildings faced south because the north had a cold wind.
Beijing became the capital of China after the Mongol invasion of the 13th century, completing the easterly migration of the Chinese capital begun since the Jin dynasty, the Ming uprising in 1368 reasserted Chinese authority and fixed Beijing as the seat of imperial power for the next five centuries. The Emperor and the Empress lived in palaces on the central axis of the Forbidden City, the Crown Prince at the eastern side, and the concubines at the back (therefore the numerous imperial concubines were often referred to as "The Back Palace Three Thousand"). However, during the mid-Qing Dynasty, the Emperor's residence was moved to the western side of the complex. It is misleading to speak of an axis in the Western sense of a visual perspective ordering facades, rather the Chinese axis is a line of privilege, usually built upon, regulating access - there are no vistas, but a series of gates and pavilions.
Numerology heavily influenced Imperial Architecture, hence the use of nine in much of construction (nine being the greatest number) and reason why The Forbidden City in Beijing is said to have 9,999.9 rooms - just short of the mythical 10,000 rooms in heaven. The importance of the East (the direction of the rising sun) in orienting and sitting Imperial buildings is a form of solar worship found in many ancient cultures, where the notion of Ruler is affiliated with the Sun.
The tombs and mausoleums of imperial family members, such as the 8th century Tang Dynasty tombs at the Qianling Mausoleum, can also be counted as part of the imperial tradition in architecture. These above-ground earthen mounds and pyramids had subterranean shaft-and-vault structures that were lined with brick walls since at least the Warring States (481–221 BCE).
Religious
Generally speaking, Buddhist architecture follows the imperial style. A large Buddhist monastery normally has a front hall, housing the statue of a Bodhisattva, followed by a great hall, housing the statues of the Buddhas. Accommodations for the monks and the nuns are located at the two sides. Some of the greatest examples of this come from the 18th century temples of the Puning Temple and the Putuo Zongcheng Temple. Buddhist monasteries sometimes also have pagodas, which may house the relics of the GautamaBuddha; older pagodas tend to be four-sided, while later pagodas usually have eight-sides.

Daoist architecture, on the other hand, usually follows the commoners' style. The main entrance is, however, usually at the side, out of superstition about demons which might try to enter the premise. (See feng shui.) In contrast to the Buddhists, in a Daoist temple the main deity is located at the main hall at the front, the lesser deities at the back hall and at the sides.
The tallest pre-modern building in China was built for both religious and martial purposes. The Liaodi Pagoda of 1055 AD stands at a height of 84 m (275 ft), and although it served as the crowning pagoda of the Kaiyuan monastery in old Dingzhou, Hebei, it was also used as a military watchtower for Song Dynasty soldiers to observe potential Liao Dynasty enemy movements.
iv>