On 30 December 1777, the Bavarian line of the Wittelsbachs became extinct, and the succession on the Electorate of Bavaria passed to Charles Theodore, the Elector Palatine. After a separation of four and a half centuries, the Palatinate, to which the duchies of Jülich and Berg had been added, was thus reunited with Bavaria. In 1793, French revolutionary armies overran the Palatinate; in 1795, the French, under Moreau, invaded Bavaria itself, advanced to Munich—where they were received with joy by the long-suppressed Liberals—and laid siege to Ingolstadt. Charles Theodore, who had done nothing to prevent wars or to resist the invasion, fled to Saxony, leaving a regency, the members of which signed a convention with Moreau, by which he granted an armistice in return for a heavy contribution (7 September 1796). Between the French and the Austrians, Bavaria was now in a bad situation. Before the death of Charles Theodore (16 February 1799), the Austrians had again occupied the country, in preparation for renewing the war with France.