Philip V of Spain had the longest reign in modern Spanish history at 65 years and 21 days .
The sum of his two reigns , 45 years and 21 days , is the longest in modern Spanish history .
Philip V of Spain