Ghazouani was an ally of former President Mohamed Ould Abdel Aziz, and was his partner in the overthrow of President Sidi Ould Cheikh Abdallahi in 2008, and was a member of the military council that ousted former President Maaouya Ould Sid'Ahmed Taya In 2005.