According to the legend recounted in the Samguk Yusa, the Gojoseon (Old Joseon) was founded in Northern Korea and Manchuria in 2333 B.C. The Jin state was formed in southern Korea in the third century B.C. and power was usurped by the Han dynasty of China at the end of the second century.