qnli question: The invasion of Portugal was the beginning of what six-year conflict? sentence: The shocking French defeat at the Battle of Bailén in July gave hope to Napoleon's enemies and partly persuaded the French emperor to intervene in person.