Franco-Prussian War
The French feared a Protestant country on their border.  France had helped Prussia beat Austria during the Austro-Prussian War (1866), but it would not allow the North German Confederation and South German states to unify.  In 1869, the throne of Spain was offered to a prince of the Catholic branch of the Prussian Hohenzollern royal family.