The city was already known at biblical times, when it was one of the major cities of the Philistines. The Philistine city was built on a hill about 150 feet (45 meters) above sea level, about 1.5 miles (2.4 km) from the Mediterranean Sea. It was a walled city of about 200 acres (80 hectares).
During World War I on November 7, 1917 the Battle of Gaza ended and United Kingdom forces captures Gaza from the Ottoman Empire.