Saxony has a long history as a duchy, an electorate of the Holy Roman Empire (the Electorate of Saxony), and finally as a kingdom (the Kingdom of Saxony).In 1918, after Germany's defeat in World War I, its monarchy was overthrown and a republican form of government was established under the current name.