Seoul has been continuously settled for over 2,000 years and it is believed that the city was first founded in 18 B.C.E by the Baekje, one of the Three Kingdoms of Korea. The city also remained as the capital of Korea during the Joseon Dynasty and the Korean Empire. During Japanese colonization of Korea in the early 20th century, Seoul became known as Gyeongseong.