The construction of the Forbidden City in the center of Beijing began in the reign of the Yongle emperor. Within its walls were gardens, palaces, and temples. Guards at its gates carefully limited access to only the important people who lived and worked inside it.