sentences:  He served overall for 52 years, 2 months, and 3 days but was only head of state per se from 1976 to 2008 (31 years, 2 months and 22 days).The longest-serving and longest current serving male president ever is Teodoro Obiang Nguema Mbasogo, who is currently the President of the Republic of Equatorial Guinea, who seized power in a coup in 1979.The longest serving female non-royal head of state and longest serving female president ever was Vigdís Finnbogadóttir, who was the President of the Republic of Iceland.