However, after the Turkish president apologized for the incident with the downing of the Russian Su-24 fighter on June 27, 2016,[5] Turkey faced a series of terrorist attacks and attempted coups three weeks later. After the unsuccessful coup against Erdogan in Turkey, mass arrests and terror against the opposition followed, which damaged Turkey's relations with the EU, the USA, Germany and especially with France. Shortly after the coup, Turkey improved diplomatic and economic relations with Russia, and then carried out as many as four military invasions in the next three years, after which it carried out a long-lasting military occupation of northern Syria.