Richard was elected in 1256 as King of Germany by four of the seven German Electoral Princes (Cologne, Mainz, the Palatinate and King-elector of Czechia), though his candidacy was opposed by Alfonso X of Castile who was elected by Saxony, Brandenburg and Trier.