The Treaty of Ried was signed between Bavaria and Austria.

Source