Spanish transition to democracy
At 14 years and 146 days, Rajoy was the longest-serving Spanish politician in the Government of Spain since the Spanish transition to democracy, having held ministerial offices continuously from 1996 to 2004 and from 2011 to 2018.