In the Bible, Ashkelon was one of the five main Philistine cities, also known as the "pentapolis," along with Gaza, Ashdod, Gath, and Ekron (Joz 13,3). It was located on the Mediterranean coast, about 30 miles or 48 kilometers south of modern Tel Aviv. Ashkelon was always an important port. It often conflicted with Egypt and was captured by Ramses II around 1286 BC and by Merneptah around 1220 BC.