Mauritanian president Maaouya Ould Sid'Ahmed Taya was overthrown in a military coup while he attended the funeral of King Fahd of Saudi Arabia.

Maaouya Ould Sid'Ahmed Taya
Maaouya Ould Sid'Ahmed Ould Taya is a Mauritanian military officer and politician who served as the President of Mauritania from 1984 to 2005. He also served as the fifth Prime minister of Mauritania from 1981 to 1992 except for a brief period in 1984.
2005 Mauritanian coup d'état
A military coup took place in Mauritania on 3 August 2005. President Maaouya Ould Sid'Ahmed Taya was ousted by the Armed Forces of Mauritania and replaced by the Military Council for Justice and Democracy (CMJD), headed by Ely Ould Mohamed Vall, while Taya was in Saudi Arabia attending the funeral of King Fahd of Saudi Arabia.
Fahd of Saudi Arabia
Fahd bin Abdulaziz Al Saud was King and Prime Minister of Saudi Arabia from 13 June 1982 until his death in 2005. Prior to his ascension, he was Crown Prince of Saudi Arabia from 1975 to 1982. He was the eighth son of King Abdulaziz, the founder of the Kingdom of Saudi Arabia.