Complex sentence: Rome annexed Carthage and its immediate vicinity, but the surrounding territories remained in Berber hands, specifically in those of King Masinissa, an ally of Rome.
Split into simpler sentences: Rome annexed Carthage and its immediate vicinity. Surrounding territories remained in Berber hands, specifically in those of King Masinissa, an ally of Rome.