The Battle of Điện Biên Phủ was decisive; the war ended shortly afterward and the 1954 Geneva Accords were signed. France agreed to withdraw its forces from all its colonies in French Indochina, while stipulating that Vietnam would be temporarily divided at the 17th parallel, with control of the north given to the Viet Minh as the Democratic Republic of Vietnam under Ho Chi Minh, and the south becoming the State of Vietnam, nominally under Emperor Bảo Đại, preventing Ho Chi Minh from gaining control of the entire country.