Achish King of Gath Seated on His Throneby KalebRosendahl

1 Samuel 21:10

And David arose, and fled that day for fear of Saul, and went to Achish the king of Gath.

David fled from Saul and sought refuge with Achish, the king of Gath. He went there because he thought he would be safer among Israel's enemies than under Saul's rule. When he was recognized as the slayer of the Philistine champion who was celebrated for killing many Philistines, he was in danger. He then acted as though he were insane and by that means escaped. That behavior in danger was something the Spirit of God led him to do.