On 29 November 1879 at the Basilica of Atocha in Madrid, Alfonso married a much more distant relative, Maria Christina of Austria, daughter of Archduke Karl Ferdinand and Archduchess Elisabeth of Austria.
In 1881 Alfonso refused to sanction a law by which the ministers were to remain in office for a fixed term of 18 months.