The clashes turned into a 17-year-long war, during which Mauritania was forced to retreat, abandoning all claims to the region, in 1979. As an effect of the conflict, a part of the territory's population became refugees. It was finally ended with a ceasefire in 1991.