To counter this, the populations moved from their homes on the coast and built settlements inland, out of sight of the raiding parties.
The population on the coast grew exponentially once the raids began.