... On 14 November 1975, a Declaration of Principles on Western Sahara was concluded in Madrid between Spain, Morocco and Mauritania (the Madrid Agreement), whereby the powers and responsibilities of Spain, as the administering Power of the territory, were transferred to a temporary tripartite administration. The Madrid Agreement did not transfer sovereignty over the territory, nor did it confer upon any of the signatories the status of an administering Power - a status which Spain alone could not have unilaterally transferred. The transfer of administrative authority over the territory to Morocco and Mauritania in 1975, did not affect the international status of Western Sahara as Non-Self-Governing Territory. ...

Hans Corell ,  UN Under-Secretary for legal Affairs - 12 February 2002

DECLARATION OF PRINCIPLES ON WESTERN SAHARA BY SPAIN, MOROCCO AND MAURITANIA (also known as Madrid Agreement or Madrid Accords)| This is how the stealing of Western Sahara was made "legal" on November 14, 1975

This is the declaration of principles that was published:

"On November 14, 1975, the delegations lawfully representing the  Governments of Spain, Morocco and Mauritania, meeting in Madrid, stated that they had agreed in order on the following principles:

"1. Spain confirms its resolve, repeatedly stated in the United Nations, to decolonize the Territory of Western Sahara by terminating the responsibilities and powers which it possesses over that Territory as administering Power.

"2. In conformity with the aforementioned determination and in accordance with the negotiations advocated by the United Nations with the affected parties, Spain will proceed forthwith to institute a temporary administration in the Territory, in which Morocco and Mauritania will participate in collaboration with the Djemaa * and to which will be transferred all the responsibilities and powers referred to in the preceding paragraph. It is accordingly agreed that two Deputy Governors nominated by Morocco and Mauritania shall be appointed to assist the Governor-General of the Territory in the performance of his functions. The termination of the Spanish presence in the Territory will be completed by February 28, 1976 at the latest.

"3. The views of the Saharan population, expressed through the Djemaa, will be respected.

"4. The three countries will inform the Secretary General of the United Nations of the terms set down in this instrument as a result of the negotiations entered into in accordance with Article 33 of the Charter of the United Nations.

"5. The three countries involved declare that they arrived at the foregoing conclusions in the highest spirit of understanding and brotherhood, with due respect for the principles of the Charter of the United Nations, and as the best possible contribution to the maintenance of international peace and security.

"6. This instrument shall enter into force on the date of publication in the Boletin Oficial del Estado of the 'Sahara Decolonization Act' authorising the Spanish Government to assume the commitments conditionally set forth in this instrument."

This declaration was signed by the president of the government Carlos Arias Navarro, for Spain; the Prime Minister, Ahmed Osman, for Morocco; and the Foreign Minister, Hamdi Ould Mouknass, for Mauritania.

  *- Djemaa: Assembly of Saharawi notables (sheikhs)