During the Mexican–American War the ships of the Home Squadron, commanded by Commodore David Conner, USN fought in several engagements against Mexican forces.
Many of the Home Squadron vessels were attached to vice commander Commodore Matthew C. Perry's Mosquito Fleet which was involved in the battles of Tuxpan, Tabasco, Villahermosa and Veracruz.
No ship-to-ship combat occurred though several merchant vessels were captured, the Home Squadron primarily operated against Mexican coastal forts and artillery batteries.
For this reason and based upon the Doctrine Monroe, the U.S government sent an emissary to discuss with Juarez's liberal party the possibility to cede the Baja California peninsula to the United States, which he promptly accepted in exchange of diplomatic, economic and military support to counteract the conservative power that at that point, had the full support of the majority of the Mexican people, and was in control of the entire country with the exception of the cities of Morelia and Veracruz.
The battle played an important role in ending the Reform War with a liberal victory and the signatory of the secret MacLane-Ocampo Treaty where Juarez and the radical liberals agreed on further cessions of Mexican territory to the U.S., as well as a couple of transit concessions through the Tehuantepec Isthmus, and from Tamaulipas across Mexico to the Gulf of California in perpetuity to the U.S. that eventually was rejected by the American congress, as it was determined that the inclusion of these states into the American federation could strengthen the southern confederate states.