Why did President John Adams increase the size of the American navy?

He needed to use tax money to fund an increase in military spending.

Congress passed a law that required him to increase support for the navy.

He wanted to prepare for all-out war on Britain.

He hoped it would deter more attacks by French ships.

which is right?

The correct answer is:

He hoped it would deter more attacks by French ships.

President John Adams increased the size of the American navy primarily in response to the Quasi-War with France (1798-1800). During this undeclared maritime conflict, French ships were seizing American vessels engaged in trade with Britain, with whom France was at war. Adams and the Federalist-controlled Congress believed that a stronger naval force would protect US merchant ships from French attacks and impressment, and would act as a deterrent against further aggression. The famous "XYZ Affair," in which French officials demanded bribes and loans to stop the attacks, had inflamed American public opinion and made increasing naval strength a popular and pressing issue.