North African pirates imperiled early American sea trade, inspiring Congress to re-establish a Navy to protect merchant ships.