Caleb was a general under Joshua. The armies of Joshua were the ones who drove the Anakims from Hebron, but Caleb was the general who personally led the attack.