The golden age of Buddhism in China occurred during the Tang dynasty. Although the Tang emperors were usually Daoists themselves, they favoured Buddhism, which had become extremely popular. Under the Tang the government extended its control over the monasteries and the ordination and legal status of monks.