The squadron sailed on 11 April for Tripoli to confront the Pasha with a strong show of American force. En route on 25 April, a powder explosion on board "New York" killed four men and damaged the ship, forcing the squadron to put into Malta from 1–19 May while she effected repairs. Arriving off Tripoli on the 22nd, the squadron remained there attempting negotiations with the Bashaw. Following two brief engagements, 22 and 27 May in which the American ships’ overwhelming fire drove off attacking Tripolitan gunboats, the talks seemed to bear fruit. Midshipman John Downes was one of those recognized for distinguished service on "New York" during the fighting.