Q: Generate a question which can yield the answer mentioned in the input. Generated question must be answered by the answer provided in input, without using any extra knowledge.
Context : Lieutenant-General William Staveley CB (29 July 1784 -- 4 April 1854) was a British Army officer who fought in the Peninsular War and later became Commander and Lieutenant Governor of Hong Kong.
Answer : Peninsular War
A:
What war did William Staveley fight in?