Japan first appears in written history in the Chinese Book of Han According to the Records of the Three Kingdoms, the most powerful kingdom on the archipelago during the 3rd century was called Yamataikoku. Buddhism was first introduced to Japan from Baekje of Korea, but the subsequent development of Japanese Buddhism was primarily influenced by China. Despite early resistance, Buddhism was promoted by the ruling class and gained widespread acceptance beginning in the Asuka period (592–710).