The 2005 coup d'état which saw the ouster of Mauritanian President Maaouya Ould Sid'Ahmed Taya whilst he was outside of the country, and his replacement by the Military Council for Justice and Democracy was condemned by Russia. Russia welcomed the reforms by the military of Mauritania, and the presidential elections in 2007 which saw the installation of Sidi Ould Cheikh Abdallahi. Following the coup d'état on 6 August 2008 in Mauritania, the Russian Ministry of Foreign Affairs condemned the overthrow of Mauritanian President Sidi Ould Cheikh Abdallahi, and took an active part in negotiations conducted in Dakar by the International Contact Group for Mauritania. It welcomed the 4 June 2009 signing of a framework agreement between opposing Mauritanian sides, and the holding of the presidential election on 18 July 2009.