appointed Irving as Minister to Spain in February 1842, after an endorsement from Secretary of State Daniel Webster. Irving wrote, "It will be a severe trial to absent myself for a time from my dear little Sunnyside, but I shall return to it better enabled to carry it on comfortably". He hoped that his position as Minister would allow him plenty of time to write, but Spain was in a state of political upheaval during most of his tenure, with a number of warring factions vying for control of the 12-year-old Queen Isabella II. Irving maintained good relations with the various generals and politicians, as control of Spain rotated through Espartero, Bravo, then Narváez. Espartero was then locked in a power struggle with the Spanish Cortes. Irving's official reports on the ensuing civil war and revolution expressed his romantic fascination with the regent as young Queen Isabella's knight protector, He wrote with an anti-republican, undiplomatic bias. Though Espartero, ousted in July 1843, remained a fallen hero in his eyes, Irving began to view Spanish affairs more realistically. However, the politics and warfare were exhausting, and Irving was both homesick and suffering from a crippling skin condition. With the political situation relatively settled in Spain, Irving continued to closely monitor the development of the new government and the fate of Isabella. His official duties as Spanish Minister also involved negotiating American trade interests with Cuba and following the Spanish parliament's debates over the slave trade. He was also pressed into service by Louis McLane, the American Minister to the Court of St. James's in London, to assist in negotiating the Anglo-American disagreement over the Oregon border that newly elected president James K. Polk had vowed to resolve. Final years and death Irving returned from Spain in September 1846, took up residence at Sunnyside, and began work on an "Author's Revised Edition" of his works for publisher George Palmer Putnam. For its publication, Irving had made a deal which guaranteed him 12 percent of the retail price of all copies sold, an agreement that was unprecedented at that time. As he revised his older works for Putnam, he continued to write regularly, publishing biographies of Oliver Goldsmith in 1849 and Islamic prophet Muhammad in 1850. In 1855, he produced Wolfert's Roost, a collection of stories and essays that he had written for The Knickerbocker and other publications, and he began publishing a