 In 1814, the French were driven out of the German lands that they had overrun, and the French departments were soon dissolved and the victorious powers imposed yet a new regional order.The Congress of Vienna annexed the Palatinate to the Kingdom of Bavaria.This brought the unwelcome presence of a border running along the river Glan between Bavaria and, eventually, after a cession, Prussia.