The Yayoi period introduced new farming and technologies, and the Yamato period saw powerful clans and early centralized rule. In the Nara period, Japan established its first capital and shaped Shinto, while the indigenous Ainu maintained their traditions in the north.