Carthaginians paid tribute in silver and gold to the Romans as a result of losing battles during the Punic Wars. Most of that metal came from Carthaginian silver mines in Spain and gold mines in western coastal Africa, which the Carthaginians colonized with 30,000 people to get the gold mines. The Romans defeated the Carthaginians in Spain and took over their silver mines.
The Barca family used their vendetta against Rome to advance their own interests in Carthaginian politics. As the Spartans told Agesilaus, the Romans didn’t know much about warfare until you started to war with them. :^)