Yi Song-Gye (born 1335—died 1408) was the founder of the Korean Joseon (Yi) dynasty (1392–1910). A military leader in the Goryeo dynasty, he rose through the ranks by battling invading forces. He defeated his rivals and drove out the last king of the Goryeo dynasty, taking the throne in 1392. He established his capital at Hanyang (now Seoul). He and his successors redistributed land, which had been concentrated in the hands of a few high-ranking bureaucrats, throughout the various levels of officialdom. In a break with the past, he made neo-Confucianism the state religion, replacing Buddhism. Farming was made the center of the economy. In foreign relations, he maintained a close relationship with China’s Ming dynasty.