The Heidelberg Catechism was written in Heidelberg in 1563 at the request of Elector Frederick III (r. 1559–1576), ruler of the Palatinate, the most influential German territory of its day. This devout prince commissioned Zacharias Ursinus, then just 28 and professor of theology at the University of Heidelberg, and Caspar Olevianus, his 26-year-old court preacher, to prepare a catechism for instructing the young and for guiding pastors and teachers. The whole theological faculty was consulted in its preparation, and it was adopted by a synod in Heidelberg the same year.