Meanwhile Joab fought against Rabbah of the Ammonites and captured the royal citadel.