Philadelphia; and returned to the Pacific in 1854. During the next two years, she cruised in the eastern and south Pacific; and, in December 1856, she put into Panama City where a new crew under Comdr. Charles Davis relieved that of Comdr. Theodorus Bailey. From New Granada (Panama), Davis took St. Mary's to the Jarvis and New Nantucket Islands, then returned to Central America to stand by, off Nicaragua, as William Walker fought to keep his empire there. On 6 February 1857, St. Mary's anchored at San Juan del Sur, where she remained into the spring as Davis sought to negotiate an end to the fighting. In early May, Walker surrendered to Davis. Walker and the other Americans in his army were taken on board St. Mary's and transported to Panama City, whence they were returned to the United States. St. Mary's then resumed her cruise, collecting hydrographic and geologic data as she performed her other duties. In March 1858, she put into Mare Island, California, for a refit. Delayed, first by a lack of funds, then by desertions of shipyard mechanics and members of her own crew to the gold fields, she remained in the shipyard into the summer. In late August, she set sail again and headed south to cruise off Central America; and, in February 1859, her officers and crew were relieved at Panama City. She then sailed north to cruise along the Mexican coast as revolution spread in Mexico. In the fall of 1860, she returned to Panama City. There, with , she assisted local officials in quelling an insurrection. A few months later, the Civil War divided the United States. Through that war, St. Mary's remained with the Pacific Squadron, protecting Union merchant shipping and searching for Confederate raiders. After the war, she cruised the Pacific until September 1866, then put into Mare Island where she was laid up for four years. In the fall of 1870, she returned to active service; and, after a cruise to Australia and New Zealand, she returned to Mare Island, whence in November 1872 she departed for Norfolk. School Ship, 1873–1908 On 3 June 1873, St. Mary's returned to Norfolk where she remained, in ordinary, until 1875. Then transferred to the New York Nautical School at New York (now the SUNY Maritime College) she served as a school ship until 1908. In June of that year, she was ordered