The Second Battle of Tripoli Harbor was a naval action that occurred during the American naval blockade which took place in Tripoli Harbor on July 14, 1804. The battle was part of the First Barbary War between forces of the United States and the forces of the Eyalet of Tripolitania.