The Philistines, perennial enemies of Israel, attacked God’s people. Eli’s sons were killed in the battle, and the ark of the covenant was captured and taken to Philistia. Upon hearing the news of his sons’ deaths, Eli also died. After several months, the Philistines returned the ark to Israel, where it remained at Kiriath Jearim for over twenty years. As the Israelites cried out to God for help against the Philistine oppressors, Samuel instructed them to be rid of the false gods they had been worshipping. With Samuel’s leadership, and by God’s power, the Philistines were overcome, and there was a time of peace between them (1 Samuel 7:9–13). Samuel was recognized as the judge of all Israel.