Answer
Ludwig II was the King of Bavaria from 1864 to 1886. He was also the Count Palatine of the Rhine, a title that he inherited from his father, Maximilian II. The Count Palatine of the Rhine was a hereditary title that was held by the rulers of Bavaria from the 12th century until the 19th century. Ludwig II was the last monarch to hold the title.