Analysis of information sources in references of the Wikipedia article "Spanish Sahara" in English language version.
To sum up the legal status: Western Sahara is not a part of Morocco and Morocco has no legal title or claim to the territory. Since the annexation is illegal, it is null and void, and Morocco is therefore, legally speaking, an occupying power. Morocco has an obligation to respect the right of the people of Western Sahara according to the law of occupation and to end its illegal annexation and occupation of Western Sahara.