The dynasty family was in charge in ancient China, homes all over China had a lot in common. Houses were laid out in a similar way. Most houses had timber frames, with walls and floors made of brick, earth, or wood. The actual layout of an ancient Chinese building was similar whether it was the home of a rich family, a poor family, a temple, or a palace. Most ancient Chinese houses were arranged around a rectangular courtyard. This created a rectangular courtyard, protected on four sides by the earth and wood structure of the house. The main door into the complex or home always faced south. The ancient Chinese believed that the proper building materials, an enclosed interior courtyard, and a front door facing south all combined to offer the residents beneficial energy.