In the 15th and 16th centuries, Neumarkt was the residence of the rulers of the Palatinate. Count Johann von Pfalz-Neumarkt established the seat of his government here, and began to develop the city into a residency. Included in his work are the church of St. Johannes, the Court Chapel, and the castle of the counts of the Palatinate. Johann was succeeded by Counts Otto I, his son Otto II, and Frederick II, who later became an Elector, and moved to Heidelberg.