Traditional Chinese architecture was heavily influenced by Confucianism and emphasized hierarchical relationships and social order. Courtyard residences were designed according to Confucian principles, with rooms arranged by status and gender. City planning followed Confucian codes, laying cities on a square grid and differentiating buildings by rank through size and decorative details. The Forbidden City best represents these Confucian influences through its emphasis on the emperor's authority and distinction of interior and exterior spaces.