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