After Goryeo was replaced by Joseon in 1392, Joseon became the official name for the entire territory, though it was not universally accepted. The new official name has its origin in the ancient country of Gojoseon (Old Joseon). In 1897, the Joseon dynasty changed the official name of the country from Joseon to Daehan Jeguk (Korean Empire).