linguistic:paraphrasing
Military and foreign relations

The military is influential in the political and economic life of Egypt and exempts itself from laws that apply to other sectors. It enjoys considerable power, prestige and independence within the state and has been widely considered part of the Egyptian " deep state ".

Egypt is speculated by Israel to be the second country in the region with a spy satellite, EgyptSat 1 in addition to EgyptSat 2 launched on 16 April 2014.

The United States provides Egypt with annual military assistance, which in 2015 amounted to US$1.3 billion. In 1989, Egypt was designated as a major non-NATO ally of the United States. Nevertheless, ties between the two countries have partially soured since the July 2013 overthrow of Islamist president Mohamed Morsi, with the Obama administration denouncing Egypt over its crackdown on the Muslim Brotherhood, and cancelling future military exercises involving the two countries. There have been recent attempts, however, to normalise relations between the two, with both governments frequently calling for mutual support in the fight against regional and international terrorism. However, following the election of Republican Donald Trump as the President of the United States, the two countries were looking to improve the Egyptian-American relations. On 3 April 2017 al-Sisi met with Trump at the White House, marking the first visit of an Egyptian president to Washington in 8 years. Trump praised al-Sisi in what was reported as a public relations victory for the Egyptian president, and signaled it was time for a normalisation of the relations between Egypt and the US.

Relations with Russia have improved significantly following Mohamed Morsi's removal and both countries have worked since then to strengthen military and trade ties among other aspects of bilateral co-operation. Relations with China have also improved considerably. In 2014, Egypt and China established a bilateral "comprehensive strategic partnership".

The permanent headquarters of the Arab League are located in Cairo and the body's secretary general has traditionally been Egyptian. This position is currently held by former foreign minister Ahmed Aboul Gheit. The Arab League briefly moved from Egypt to Tunis in 1978 to protest the Egypt–Israel peace treaty, but it later returned to Cairo in 1989. Gulf monarchies, including the United Arab Emirates and Saudi Arabia, have pledged billions of dollars to help Egypt overcome its economic difficulties since the overthrow of Morsi.

Following the 1973 war and the subsequent peace treaty, Egypt became the first Arab nation to establish diplomatic relations with Israel. Despite that, Israel is still widely considered as a hostile state by the majority of Egyptians. Egypt has played a historical role as a mediator in resolving various disputes in the Middle East, most notably its handling of the Israeli–Palestinian conflict and the peace process. Egypt's ceasefire and truce brokering efforts in Gaza have hardly been challenged following Israel 's evacuation of its settlements from the strip in 2005, despite increasing animosity towards the Hamas government in Gaza following the ouster of Mohamed Morsi, and despite recent attempts by countries like Turkey and Qatar to take over this role.

Ties between Egypt and other non-Arab Middle Eastern nations, including Iran and Turkey, have often been strained. Tensions with Iran are mostly due to Egypt's peace treaty with Israel and Iran's rivalry with traditional Egyptian allies in the Gulf. Turkey's recent support for the now-banned Muslim Brotherhood in Egypt and its alleged involvement in Libya also made both countries bitter regional rivals.

Egypt is a founding member of the Non-Aligned Movement and the United Nations. It is also a member of the Organisation internationale de la francophonie, since 1983. Former Egyptian Deputy Prime Minister Boutros Boutros-Ghali served as Secretary-General of the United Nations from 1991 to 1996.

In 2008, Egypt was estimated to have two million African refugees, including over 20,000 Sudanese nationals registered with UNHCR as refugees fleeing armed conflict or asylum seekers. Egypt adopted "harsh, sometimes lethal" methods of border control.