Davutoğlu presided over a significant improvement in relations with Egypt following the election of Mohamed Morsi as president in 2012, followed by a sudden deterioration shortly after the latter's removal in 2013. As one of the closest backers of the Muslim Brotherhood, Davutoğlu's relations with Morsi's government involved a Turkish offer of assistance in order to draft a secular constitution. This offer, which some viewed as an attempt by Davutoğlu to increase Turkish influence in Egypt, was rejected by Morsi's government who instead opted for a more Islamist constitution. Regardless, both Davutoğlu and Erdoğan strongly criticised the July 2013 overthrow of Morsi, and the Grand National Assembly passed a cross-party motion of condemnation.