The XYZ Affair Cause tension to increase between United States and France. It led to an undeclared war on the United States. Because of it, Congress chose to increase defenses, so the Department of Navy and warships.
Get this from google I hope this help :)