In 1802, Thomas Jefferson sought and obtained congressional approval before deploying American naval forces to Libya. Though America did not formally declare war on the pirates based in Tripoli, Jefferson and a Congress composed of our founding generation decided that military action against the Barbary pirates was called for, and that congressional authorization should precede military action.