Beethoven was finally motivated to begin significant composition again in June 1813, when news arrived of Napoleon's defeat at the Battle of Vitoria by a coalition led by the Duke of Wellington. The inventor Mälzel persuaded him to write a work commemorating the event for his mechanical instrument the Panharmonicon.
This was followed by the occupation of Trujillo on 9 June. Six days later, and as a result of Spanish massacres on independence supporters, Bolívar dictated his famous "Decree of War to the Death", allowing the killing of any Spaniard not actively supporting independence.