In the 1980s, in an effort to control the territory and stymie the Polisario, Morocco began building a number of elaborate walls (or 'berms'), eventually completing the Moroccan Western Sahara Wall in 1987.[8] 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. At present the dispute remains unresolved.