Nara was capital of Japan from 710 AD to 787 AD; during this time, buddhism began to gain influence in the country. So much influence, in fact, that the aristocracy eventually moved the capital to Kyoto in order to prevent the buddhist clergy in Nara from becoming too politically powerful.