At about 460 km (286 mi) from Nouadhibou, the Mauritania Railway originally passed through the 2 km (1 mi) long and steeply graded Choum Tunnel, to avoid passing through part of the Río de Oro territory in Western Sahara, which was then occupied by Spain. Since the end of the Western Sahara War in 1991, a 5 km (3 mi) diversion of the line has been built through the Polisario-controlled Free Zone of Río de Oro, thus enabling the closure of the Choum Tunnel.