The Ministry of Foreign Affairs, European Union and Cooperation (MAEUEC) is a department of the Government of Spain in charge of planning, managing, carrying out and evaluating the country's foreign and international cooperation for development policies, paying special attention to the ones in relation to the European Union and Ibero-America, as well as coordinating and supervising all actions done in this areas by the other Ministries and Public Administrations.[4] Of these, 115 were embassies, 89 consulates and 11 other types of diplomatic representations, not counting the 48 cooperation units of the AECID or the 87 centers of the Cervantes Institute.The first diplomatic relations of Spain as a unified entity began to be carried out with the Catholic Monarchs, but strengthened by Charles I and Philip II because of the need to protect the interests of the Empire.With this change, Spain was endowed with an analogous institution to which the rest of European nations had in which two new bodies worked on, consular officials and the diplomats, who would eventually merge in 1928.In 2000 the headquarters were moved to a 50,455 square meters building in Madrid but because of environmental and conditioning problems led to the return to the Palace of Santa Cruz in 2004–5.