After the Mexican War broke out in the spring of 1846, Bailey assumed his first command, the sloop , that summer.
In October 1848, Bailey left Lexington on the west coast to go ashore on a leave of absence from the service.