to relinquish his command of the squadron to Barron, who was senior in rank. Constitution was ordered to Malta on the 11th for repairs and, while en route, captured two Greek vessels attempting to deliver wheat into Tripoli. On the 12th, a collision with President severely damaged Constitutions bow, stern, and figurehead of Hercules. The collision was attributed to an act of God in the form of a sudden change in wind direction. Peace treaty Captain John Rodgers assumed command of Constitution on 9 November 1804 while she underwent repairs and resupply in Malta. She resumed the blockade of Tripoli on 5 April 1805, capturing a Tripoline xebec, along with two prizes that the xebec had captured. Meanwhile, Commodore Barron gave William Eaton naval support to bombard Derne, while a detachment of US Marines under the command of Presley O'Bannon was assembled to attack the city by land. They captured it on 27 April. A peace treaty with Tripoli was signed aboard Constitution on 3 June, in which she embarked the crew members of Philadelphia and returned them to Syracuse. She was then dispatched to Tunis and arrived there on 30 July. Seventeen additional American warships had gathered in its harbor by 1 August: Congress, Constellation, Enterprise, , , , , Nautilus, Syren, and eight gunboats. Negotiations went on for several days until a short-term blockade of the harbor finally produced a peace treaty on 14 August. Rodgers remained in command of the squadron, sending warships back to the United States when they were no longer needed. Eventually, all that remained were Constitution, Enterprise, and Hornet. They performed routine patrols and observed the French and Royal Navy operations of the Napoleonic Wars. Rodgers turned over the command of the squadron and Constitution to Captain Hugh G. Campbell on 29 May 1806. James Barron sailed Chesapeake out of Norfolk on 15 May 1807 to replace Constitution as the flagship of the Mediterranean squadron, but he encountered , resulting in the Chesapeake–Leopard affair and delaying the relief of Constitution. Constitution continued patrols, unaware of the delay. She arrived in late June at Leghorn, where she took aboard the disassembled Tripoli Monument for transport back to the United States. Campbell learned the fate of Chesapeake when he arrived at Málaga, and he immediately began preparing Constitution and Hornet for possible war against Britain. The crew became mutinous upon learning of the delay in