The First World War ended in 1918 and left Germany scarred and crumbling, having been defeated by the combined force of Britain, France, Russia, Italy and the USA. Friedrich Ebert, leader of the Social Democratic Party, became the first German president and declared Germany a republic.