his successor, Commodore Lewis Warrington retained John Adams as his flagship until 1826. From time to time, thereafter, the frigate returned to the West Indies for operations against pirates until 1829 when she was laid up and almost entirely rebuilt at the Navy Yard in Gosport, Virginia. John Adams joined the Mediterranean Squadron in 1831 as a frigate. One of her first duties was to take her former commander, ex-Commodore Porter, to Constantinople where he became the U.S.'s first chargé d'affaires. The ship was granted the rare privilege of passing through the Dardanelles with guns mounted. Thereafter, she convoyed ships in the Mediterranean and in 1833 visited Liberia. After extensive repairs in the United States, John Adams sailed from Hampton Roads on 5 May 1838, accompanied by , on a cruise around the world. Particular stress was placed upon showing the flag in the East Indies where the United States enjoyed a prosperous and growing trade. Both ships arrived Rio de Janeiro 10 July but departed separately, John Adams sailing on 25 July. She stopped at Zanzibar en route to Bombay, where she rejoined Columbia before sailing on to Goa and Colombo, Ceylon. At Colombo the ships learned that natives at Susoh (currently in Southwest Aceh Regency, Aceh, Indonesia) had attacked the American ship Eclipse. The squadron immediately sailed to the scene of the incident and bombarded the forts at Kuala Batee to induce the Rajahs of Sumatra to agree to offer assistance and protection to American vessels. They then landed over 300 marines and sailors to attack the village of Muckie, which they destroyed (Second Sumatran Expedition). Before returning to Rio de Janeiro on 23 April 1840, the squadron called at Singapore, Macau, Honolulu, Valparaíso, and Cape Horn. Mexican-American and Civil Wars John Adams finally arrived Boston about the middle of June where she was laid up until 1842. After duty on the Brazil Station, she went into ordinary where she remained until recommissioned at the beginning of the Mexican-U.S. War. She was anchored off the bar at Santiago 8 May 1846 during the Battle of Palo Alto. She then maintained a blockading station off the east coast of Mexico for the remainder of the war. The prolonged period of time the John Adams spent on station off the Mexican coast in support of American military operations, may account for the increase in flogging as reflected in the surviving