During the War of 1812, with the encouragement of the United Kingdom,[6] the Barbary corsairs resumed their attacks on American vessels. Following the conclusion of the War of 1812 and America's peace with Britain, James Madison, Jefferson's successor, directed military forces against the Barbary states in the Second Barbary War. Lasting only three... See more