The Philistine city of Gaza was located on the seacoast at the southwest edge of Palestine. It served as a gateway for trade between Africa and Asia. Its wrongdoing was engaging in slave trading. Philistia had attacked Israel or Judah and sold entire villages into slavery to Edom.