Founded by Hyeokgeose of Silla, of the Park family, the Korean dynasty was ruled by the Gyeongju Gim (Kim) (김, 金) clan for 586 years, the Miryang Bak (Park) (박, 朴) clan for 232 years and the Wolseong Seok (석, 昔) clan for 172 years. It began as a chiefdom in the Samhan confederacies, once allied with Sui China and then Tang China, until it eventually conquered the other two kingdoms, Baekje in 660 and Goguryeo in 668. Thereafter, Later Silla occupied most of the Korean Peninsula, while the northern part re-emerged as Balhae, a successor-state of Goguryeo. After nearly 1,000 years of rule, Silla fragmented into the brief Later Three Kingdoms of Silla, Later Baekje, and Taebong, handing over power to Goryeo in 935.