The Lower Paleolithic era in the Korean Peninsula began roughly half a million years ago. The earliest known Korean pottery dates to around 8000 BC, and the Neolithic period began after 6000 BC, followed by the Bronze Age by 800 BC, and the Iron Age around 400 BC.
According to the mythic account recounted in the Samguk Yusa, the Gojoseon (Old Joseon) kingdom was founded in northern Korea and Manchuria in 2333 BC. The Gija Joseon was purportedly founded in 12th century BC, and its existence and role have been controversial in the modern era. The written historical record on Gojoseon can be found from early 7th century BC. The Jin state was formed in southern Korea by the 3rd century BC. In the 2nd century BC, Gija Joseon was replaced by Wiman Joseon which fell to the Han China near the end of the century. This resulted in the fall of Gojoseon and led to succeeding warring states, the Proto–Three Kingdoms period that spanned the later Iron Age.
From the 1st century, Goguryeo, Baekje, and Silla grew to control the peninsula and Manchuria as the Three Kingdoms (57 BC – 668 AD) until unification by Silla in 676. In 698, Dae Jo-yeong established Balhae in old territories of Goguryeo, which led to the North South States Period (698–926). In the late 9th century, Silla was divided into the Later Three Kingdoms (892–936), which ended with the unification by Wang Geon's Goryeo dynasty. Meanwhile, Balhae fell after invasions by the Khitan Liao dynasty and the refugees including the last crown prince emigrated to Goryeo, where the crown prince was warmly welcomed and included into the ruling family by Wang Geon, thus unifying the two successor states of Goguryeo. During the Goryeo period, laws were codified, a civil service system was introduced, and culture influenced by Buddhism flourished. However, Mongol invasions in the 13th century brought Goryeo under its influence until the mid-14th century.