The Legend of Sleepy Hollow
"The Legend of Sleepy Hollow" is a gothic story by American author Washington Irving, contained in his collection of 34 essays and short stories entitled "The Sketch Book of Geoffrey Crayon, Gent.". Written while Irving was living abroad in Birmingham, England, "The Legend of Sleepy Hollow" was first published in 1820. Along with Irving's companion piece "Rip Van Winkle", "The Legend of Sleepy Hollow" is among the earliest examples of American fiction with enduring popularity, especially during Halloween because of a character known as the Headless Horseman believed to be a Hessian soldier who was decapitated by a cannonball in battle.From the listless repose of the place, and the peculiar character of its inhabitants, who are descendants from the original Dutch settlers, this sequestered glen has long been known by name of Sleepy Hollow ... A drowsy, dreamy influence seems to hang over the land, and to pervade the very atmosphere.
The Legend of Sleepy Hollow
The story is set in 1790 in the countryside around the Dutch settlement of Tarry Town (historical Tarrytown, New York), in a secluded glen known as Sleepy Hollow. Sleepy Hollow is renowned for its ghosts and the haunting atmosphere that pervades the imaginations of its inhabitants and visitors. Some residents say this town was bewitched during the early days of the Dutch settlement, while others claim that the mysterious atmosphere was caused by an old Native American chief, the "wizard of his tribe ... before the country was discovered by Master Hendrik Hudson." The most infamous spectre in the Hollow is the Headless Horseman, supposedly the ghost of a Hessian trooper whose head had been shot off by a stray cannonball during "some nameless battle" of the Revolution, and who "rides forth to the scene of battle in nightly quest of his head".
Washington Irving
Washington Irving (April 3, 1783 – November 28, 1859) was an American short-story writer, essayist, biographer, historian, and diplomat of the early 19th century. He is best known for his short stories "Rip Van Winkle" (1819) and "The Legend of Sleepy Hollow" (1820), both of which appear in his collection "The Sketch Book of Geoffrey Crayon, Gent." His historical works include biographies of Oliver Goldsmith, Muhammad and George Washington, as well as several histories of 15th-century Spain that deal with subjects such as Alhambra, Christopher Columbus and the Moors. Irving served as American ambassador to Spain in the 1840s.
Washington Irving
Born and raised in Manhattan to a merchant family, Irving made his literary debut in 1802 with a series of observational letters to the "Morning Chronicle", written under the pseudonym Jonathan Oldstyle. He temporarily moved to England for the family business in 1815 where he achieved fame with the publication of "The Sketch Book of Geoffrey Crayon, Gent.", serialized from 1819–20. He continued to publish regularly throughout his life, and he completed a five-volume biography of George Washington just eight months before his death at age 76 in Tarrytown, New York.

Question: The U.S. ambassador to Spain from 1842 to 1846 wrote a book while living in what town in England?
Answer: Birmingham