The roots of the People's State of Bavaria lay in the German Empire's defeat in the First World War and the social tensions that came to a head shortly thereafter. From this chaos erupted the German Revolution of 1918. At the end of October 1918, German sailors began a series of revolts in Kiel and other naval ports.