After the War of 1812, this 4th president asked Congress to declare war on Algiers
Although Congress never voted on a formal declaration of war, they did ... the 
14-gun Tripolitan corsair Tripoli after a one-sided battle on 1 August 1801.