After the founding of the country, Joseon actively established foreign relations in order to stabilize the legitimacy of the dynasty and the ruling system. Joseon established friendly diplomatic relations with the Ming and established diplomatic relations with the Jurchen and Japan. The external relations of the Joseon were shaped by the international situation, and it formulated and implemented an active foreign policy to eliminate political and military threats. The Ming, which replaced the Yuan as the central state in East Asia, sought to establish a unified governance system centered on the emperor domestically during the reign of the Hongwu Emperor(洪武帝) and externally to form an international order centered on the Ming. The Ming recognized Joseon in the northeast as a neighboring country and implemented an active policy of conciliation in order to bring the Jurchen, who lived in Liaodong and the northern part of the Korean peninsula, under the influence of the Ming. Specifically, the Ming established a military government system to actively govern Liaodong and set up a loose rein policy(羈縻政策) for the surrounding Jurchen. The Ming wanted to establish a border with Joseon along the Yalu river(압록강) and Tumen river(두만강) to create a stable relationship. Joseon emerged as a state on the Korean peninsula, replacing Goryeo, and continued to have stable diplomatic relations with the Ming. In addition, Joseon wanted to keep the Jurchen, who lived in the northern part of the Korean Peninsula, under Joseon's sphere of influence in case the northern ethnic groups, including the Jurchen, were invaded by the international situation. As such, the Joseon and Ming clashed over influence over the Liaodong and the Jurchen. Basically, however, Joseon and Ming maintained mutually recognized borders and sought a stable international order. However, the concept of Joseon's borders was complicated by the consolidation of the Jurchen in the 16th century and their emergence as a new power. As the Jurchen expanded their power, Joseon, in conjunction with the Ming, actively sought to control them. However, due to the rapidly changing conditions of the Imjin War, the Joseon and Ming were unable to curb the growth of the Jurchen. The unified Jurchen founded the Later Jin(後金) and went to war with the Ming in earnest, renamed the Qing, and defeated the Ming, emerging as the center of power in East Asia. The border problems of the Joseon and Qing were both continuous and distinct from the border problems of the Joseon and Ming.