 It was one of the last refuges of the Anakim in front of the conquering Israelites under Joshua ().Gath was either subdued during the days of prophet Samuel (), or by king David (), although states that in the time of king Solomon it was still ruled by a Philistine king named Achish.King Achish is mentioned as the ruler of Gath for the times of Saul, David and Solomon, making it uncertain whether this refers to two or more kings of the same name.