The Electoral Palatinate was one of the electorates of the Holy Roman Empire, located on the banks of the Rhine. It had a volatile political history, continuously splitting and reuniting. Elector Frederick V's capture of the Bohemian throne sparked the Thirty Years War in 1618, in which much of the area was devastated. The Palatinate was united in a personal union with Bavaria in 1777. Currently it is part of the German state of Rhineland-Palatinate, with smaller areas in Baden-Wuerttemberg and Bavaria.