Passage: Buddhism (仏教 Bukkyō) first arrived in Japan in the 6th century, it was introduced in the year 538 or 552 from the kingdom of Baekje in Korea. The Baekje king sent the Japanese emperor a picture of the Buddha and some sutras. After overcoming brief yet violent oppositions by conservative forces, it was accepted by the Japanese court in 587. The Yamato state ruled over clans (uji) centered around the worship of ancestral nature deities. It was also a period of intense immigration from Korea, horse riders from northeast Asia, as well as cultural influence from China, that had been unified under the Sui dynasty becoming the crucial power on the mainland. Buddhism was functional to affirm the state's power and mold its position in the broader culture of East Asia. Japanese aristocrats set about building Buddhist temples in the capital at Nara, and then in the later capital at Heian (now Kyoto).The six Buddhist sects initially established in Nara are today together known as "Nara Buddhism" and are relatively small. When the capital moved to Heian, more forms of Buddhism arrived from China, including the still-popular Shingon Buddhism, an esoteric form of Buddhism similar to Tibet's Vajrayana Buddhism, and Tendai, a monastic conservative form known better by its Chinese name, Tiantai.

Question: What religion initially came to Japan in the 500s?
Buddhism