On October 31, 1803, the frigate USS Philadelphia ran aground on a reef a few miles outside the harbor of Tripoli. Since April 1801, the United States had been at war with Tripoli, one of the Barbary “pirate” regimes, over the payment of annual tribute—br