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 kingdom of Gojoseon (2333 BCE). In 1897, the Joseon dynasty changed the official name of the country from ''Joseon'' to ''Daehan Jeguk'' (Korean Empire). The name ''Daehan'' (Great Han) derives from Samhan (Three Han), referring to the Three Kingdoms of Korea, not the ancient confederacies in the southern Korean Peninsula. However, the name ''Joseon'' was still widely used by Koreans to refer to their country, though it was no longer the official name. Under Japanese rule, the two names ''Han'' and ''Joseon'' coexisted. There were several groups who fought for independence, the most notable being the ''Provisional Government of the Republic of Korea'' ( / ).