At the Peace of Amiens, "Désirée" remained in service with orders to sail for the West Indies. Inman, whose health was beginning to suffer, resigned command and returned to his family on half-pay until the outbreak of the Napoleonic Wars in 1803, when he was given the 64-gun ship of the line HMS "Utrecht". In 1804 he moved from "Utrecht" to the 74-gun HMS "Triumph" and in February 1805 was attached to the fleet under Sir Robert Calder stationed off Cape Finisterre during the Trafalgar campaign. At 11:00 on 22 July, Calder sighted the French and Spanish fleet under Vice-Admiral Pierre-Charles Villeneuve emerging from the fog off Ferrol and attacked, "Triumph" third in line behind HMS "Hero" and HMS "Ajax". The battle lines tacked and closed with one another, beginning a general action at 18:00, eventually separating at 21:30. "Triumph" was heavily engaged in the melee, in which two Spanish ships were captured, and suffered severe damage although light casualties of five killed and six wounded. On 26 July, Inman was briefly detached from the fleet to chase away the French frigate "Didon" before returning to her station in the battle line, but the action was not resumed, Calder ordering the fleet to return to Britain. In the aftermath of the battle, Calder faced a court martial for his failure to resume the engagement and Inman was called to give evidence: when questioned as to why he had not informed Calder about the damage to his ship, Inman replied "I did not think that a proper time to trouble the admiral with my complaints".