Aboard "Temeraire" Kennedy fought at Trafalgar and played a key role in the capture of the French "Fougueux". Promoted to commander for his services, Kennedy captained a ship during the Walcheren Campaign, before being promoted to post-captain shortly before the end of the Napoleonic Wars. His last posting was in 1834, as Captain-Superintendent at Sheerness Dockyard. For the last two years of his commission he commanded his old ship, HMS "Temeraire", which was at Sheerness, serving as a guardship. He was required to arrange and oversee the sale and disposal of the Trafalgar veteran in 1838, one of his last duties before his own commission ended later that year. Kennedy subsequently went into retirement and died in 1846.