Spain chose a member of the House of Savoy for its King before becoming a Republic in 1873-1874 and proceeding to become a monarchy again under Alfonso XII of the House of Bourbon.
If the Second Empire had survived via defeating Prussia, could a Bonaparte have become King of Spain?