Morocco and Polisario signed a ceasefire agreement in 1991 ending the war; Morocco retained control of areas west of the wall (roughly 80% of Western Sahara), with Polisario controlling those east, including the border with Algeria.