Because of China's influence in medieval times, the concept of the Mandate of Heaven spread to other East Asian countries as a justification for rule by divine political legitimacy. In Korea, the kingdom of Goguryeo, one of the Three Kingdoms of Korea, adopted the Chinese concept of tianxia which was based on Mandate of Heaven, however in Goguryeo it was changed to be based on divine ancestry. The kingdom of Silla is also said to be adopted the Mandate of Heaven, but the earliest records are from Joseon Dynasty, which made the Mandate of Heaven an enduring state ideology.