Respuesta :

Explanation:

The success of the naval war with the Barbary pirates prepared the United States for a full-scale war with Tripoli to protect American shipping interests in the Mediterranean Sea.