On 2 January 1861, Frederick William IV died and William ascended the throne as William I of Prussia. In July, a student from Leipzig attempted to assassinate William, but he was only lightly injured. Like Frederick I of Prussia, William travelled to Königsberg and there crowned himself at the Schlosskirche. William chose the anniversary of the Battle of Leipzig, 18 October, for this event, which was the first Prussian crowning ceremony since 1701 and the only crowning of a German king in the 19th century. William refused to comply with his brother's wish, expressed in Frederick William's last will, that he should abrogate the constitution.