In 1917, the British army captured Rafah, and used it as a base for their attack on Gaza. The presence of the army bases was an economic draw that brought people back to the city.