Madrid hosts 121 foreign embassies accredited before Spain, comprising all resident embassies in the country. The headquarters of the Spanish Ministry of Foreign Affairs, European Union and Cooperation, the Spanish Agency for International Development Cooperation and the Diplomatic School are also located in the city.