How did western Sahara gain its independence?

Look in a book =3