While at Bezek they encountered King Adoni-bezek and fought against him, and the Canaanites and Perizzites were defeated.