The Trumpet-Major is a novel by Thomas Hardy published in 1880, and his only historical novel. It concerns the heroine, Anne Garland, being pursued by three suitors: John Loveday, the eponymous trumpet major in a British regiment, honest and loyal; his brother Bob, a flighty sailor; and Festus Derriman, the cowardly nephew of the local squire. Unusually for a Hardy novel, the ending is not entirely tragic; however, there remains an ominous element in the probable fate of one of the main characters.
The book is unusual for being the only one of novels for which he wrote preliminary notes, in a pocket book traditionally labelled as 'The Trumpet-Major Notebook'. It is also perhaps extraordinary in the extent to which Hardy aimed for historical accuracy; to that end, he conducted research at the British Museum and consulted various periodicals and newspaper accounts of the time. Richard H. Taylor has noted the accuracy of Hardy's details in the novel.