David defended the Canaanite city of Keilah, explaining Saul's defeat at Gibeon due to attacking a city with a peace treaty with the Ephraimites. [1]