fire. Today, the Imperial Palace stands on the site of the castle. In 1611, Ieyasu, at the head of 50,000 men, visited Kyoto to witness the enthronement of Emperor Go-Mizunoo. In Kyoto, Ieyasu ordered the remodeling of the Imperial Court and buildings, and forced the remaining western daimyo to sign an oath of fealty to him. In 1613, he composed the , a document which put the court daimyo under strict supervision, leaving them as mere ceremonial figureheads. In 1615, Ieyasu prepared the , a document setting out the future of the Tokugawa regime. Relations with foreign powers As Ōgosho, Ieyasu also supervised diplomatic affairs with the Netherlands, Spain, and England. Ieyasu chose to distance Japan from European influence starting in 1609, although the shogunate did still grant preferential trading rights to the Dutch East India Company and permitted them to maintain a "factory" for trading purposes. From 1605 until his death, Ieyasu frequently consulted English shipwright and pilot, William Adams. Adams, fluent in Japanese, assisted the shogunate in negotiating trading relations, but was cited by members of the competing Jesuit and Spanish-sponsored mendicant orders as an obstacle to improved relations between Ieyasu and the Roman Catholic Church. Significant attempts to curtail the influence of Christian missionaries in Japan date to 1587 during the leadership of Toyotomi Hideyoshi. However, in 1614, Ieyasu was sufficiently concerned about Spanish territorial ambitions that he signed a Christian Expulsion Edict. The edict banned the practice of Christianity and led to the expulsion of all foreign missionaries. Although some smaller Dutch trading operations remained in Nagasaki, this edict dramatically curtailed foreign trade and marked the end of open Christian witness in Japan until the 1870s. The immediate cause of the prohibition was the Okamoto Daihachi incident, a case of fraud involving Ieyasu's Catholic vavasor, but the shogunate was also concerned about a possible invasion by the Iberian colonial powers, which had previously occurred in the New World and the Philippines. Conflict with Hideyori The last remaining threat to Ieyasu's rule was Toyotomi Hideyori, the son and rightful heir to Hideyoshi. He was now a young daimyo living in Osaka Castle. Many samurai who opposed Ieyasu rallied around Hideyori, claiming that he was the rightful ruler of Japan. Ieyasu found fault with the opening ceremony of a temple（Great Buddha of Kyoto） built by Hideyori; it was as if he prayed for Ieyasu's death and the ruin