He served as a medical officer during the war in South Africa from 1900-1902, and his experiences heavily influenced his writing, including:
* "The Hound of the Baskervilles": Doyle incorporated his experiences of the South African landscape and the fear and tension associated with the war into the novel.
* "The Adventure of the Three Gables": The story features a character who served in the Boer War and explores the psychological effects of war on soldiers.
Doyle also wrote several short stories and essays directly related to the war, including:
* "The Great Boer War": A collection of essays about the war.
* "The Tragedy of the Korosko": A story about a group of British travelers caught in a war zone.
He was a strong supporter of the British war effort, but also wrote about the hardships faced by soldiers and the ethical complexities of warfare.