The Turkish AKP, the ruling party of Turkey, publicly supported the Muslim Brotherhood during and a few months after the overthrow of the Muslim Brotherhood-affiliated Egyptian president Mohamed Morsi in July 2013. Then-Turkish Prime Minister Recep Tayyip Erdoğan claimed in an interview that this was because "Turkey would stand by whoever was elected as a result of legitimate elections." According to the Carnegie Endowment for International Peace, each year after Morsi's overthrow has seen the AKP "significantly detach itself from the Muslim Brotherhood in Egypt."