 Evading religious persecution in the Kingdom of Hungary, then under the control of the staunchly Roman Catholic Habsburgs, Bach, being a Protestant, settled in Wechmar, a village in the German state of Thuringia.His descendants continued to live there until Christoph Bach, grandfather of J. S. Bach, moved to Erfurt to take up a position as municipal musician or "Stadtpfeifer" (town piper).Bach's son Johannes Bach studied music with the town's head piper.