 Following defeat by Napoleon in 1805, Austria was forced to cede Tyrol to the Kingdom of Bavaria in the Peace of Pressburg.Tyrol as a part of Bavaria became a member of the Confederation of the Rhine in 1806.The Tyroleans rose up against the Bavarian authority and succeeded three times in defeating Bavarian and French troops trying to retake the country.