After the Third Punic War , Carthage was supplanted by Rome .
The Rif became part of the province of Mauretania .
After the Third Punic War , Carthage was supplanted by Rome , and the Rif became part of the province of Mauretania .