In late June and early July 1777, as a major in the Rhode Island state troops, he planned and led a raid on British headquarters, capturing Major General Richard Prescott. On the night of July 10–11, with 38 men and six officers in five whaleboats, Barton crossed Narragansett Bay, passed unobserved by three British frigates, and, landing about halfway between Newport and Bristol Ferry, went to the farm house where Prescott had his headquarters. The guards were surprised, the door of Prescott's room was broken in, and the general was hurried away half dressed and taken to Warwick Point, and afterward to Providence. For this exploit, the Continental Congress gave Barton a sword and passed a resolution honoring his service.