Following the peace accord with France, the Navy's personnel strength and number of active vessels was reduced. The Jefferson Administration reduced active naval strength to three frigates (twelve were built between 1797 and 1800) and sold off or used the collected supplies in the Navy Yards for gunboat construction. This policy left the United States unprepared to respond to the later threats of the Barbary pirates and failed to prevent war with England in 1812.