1801–1805: First Barbary War: a series of naval battles in the Mediterranean against the Kingdom of Tripoli, a quasi-independent state of the Ottoman Empire. Action was in response to the capture of numerous American ships by the infamous Barbary pirates. The federal government rejected the Tripolitan request for an annual tribute to guarantee safe passage, and an American naval blockade ensued.