through the deception threw an oar for the sailor to float on and continued to pursue the raiders. The British sailors fired their rifles with good accuracy at the fleeing American raiders. Four of the eight Americans were wounded and another killed. Gregory seeing no hope for escape surrendered. All the American raiders were taken prisoner. Gregory was British custody and refused parole. End of the war and release After being sent to England, Gregory remained there until June 1815, months after the end of hostilities. He was finally released. Command assignments, 1820s to early 1830s After he was released by the British, Gregory joined the Mediterranean Squadron and operated along the North African coast until 1821. In that year, he became captain of Grampus and spent the following two years cruising the West Indies to suppress piracy. While in the Indies, Gregory captured the notorious pirate brig Panchita and destroyed several other pirate ships. In 1824, Gregory fitted out the frigate Brandywine, destined to carry the Marquis de la Fayette back to France. In 1826 Gregory sailed a 64-gun frigate named HELLAS from Christopher Bergh's shipyard in New York City's lower East Side to Greece for the revolutionary government. The Hellas became the Greek Navy's first flagship, fighting for the country's independence from the Ottoman Empire. From 1824 to 1828 Gregory served at the New York Navy Yard, and in 1831 reported to the Pacific Station for a three-year cruise in command of Falmouth. Gregory served as commander of the Station for one year. Command assignments, late 1830s to 1850s From the Pacific Ocean, Gregory—appointed a Captain in 1838—sailed to the Gulf of Mexico, where he commanded North Carolina and Raritan and served in the blockade of the Mexican coast during the Mexican–American War. After the Mexican War, Gregory commanded the squadron off the African coast, with Portsmouth as his flagship, until June 1851. Returning to the United States, he became commandant of the Boston Navy Yard in May 1852 and served there through February 1856. His subsequent retirement ended a Navy career that had spanned nearly 50 years. Civil War duty and last years When the Civil War rolled across the land, Gregory returned to naval service to superintend the construction and fitting-out of naval vessels in private shipyards, including iron-clad vessels. Promoted to Rear Admiral July 16, 1862, he served throughout the four years of war and