Following their defeat at the Battle of Điện Biên Phủ, the French began negotiations to leave Vietnam. As a result of peace accords worked out at the Geneva Conference in Geneva, Switzerland, Vietnam was divided into North Vietnam and South Vietnam at the 17th Parallel as a temporary measure until unifying elections could take place in 1956. Transfer of civil administration of North Vietnam to the Việt Minh was given on October 11, 1954. Hồ Chí Minh was appointed Prime Minister of North Vietnam, which would be run as a socialist state. Ngô Đình Diệm, who was previously appointed Prime Minister of South Vietnam by Emperor Bảo Đại, eventually assumed control of South Vietnam.