Formed in the British protectorate of the Sultanate of Egypt, the initially small force was raised to guard the Suez Canal and Egypt. After the withdrawal from the Gallipoli Campaign the force grew into a large reserve force designed to provide reinforcements for the Western Front, while the Western Frontier Force fought in the Senussi Campaign from 1915 to 1917, and the Eastern Frontier Force defended the canal at the Battle of Romani in August 1916. Following the victory at Romani, part of Eastern Force pursued the Ottoman Empire invading force back to Palestine after the victories at the Battle of Magdhaba in December 1916 and the Battle of Rafa in January 1917, by which time Desert Column had been formed within Eastern Force. These victories which resulted in the recapture of substantial Egyptian territory were followed in March and April, by two EEF defeats on Ottoman Turkish Empire territory, at the First and Second Battles of Gaza in southern Palestine.