Rather than attack the well-protected Ottoman army and suffer large casualties, the Arabs surrounded the city and cut it off from access to other Ottoman forces. For much of the war the Ottomans managed to keep the Hijaz Railway open to Medina and, through this, were able to continue to supply their men with weapons, ammunition, and other equipment until near the end of the war. The constant need for supplies in Medina played into the Sharifian strategy which was designed to have the Ottomans station troops along the railway and in Medina, wasting troops and supplies, while the Arabs continued up the coast of the Red Sea.