Tebele Scheuer, in the neighboring city of Mainz where he studied in 1776 and 1777, then returned to his native city. First positions and marriage In 1782 Nathan Adler became rabbi of Boskovice, Moravia, and on Adler's advice Sofer went to Prostějov, Moravia. There, on 6 May 1787, Sofer married Sarah, the daughter of Moses Jerwitz, the rabbi of Prostějov. Sofer became a member of the Chevra kadisha (Shu"t Chatam Sofer, and eventually became head of the yeshiva in Prostějov. In 1794 Sofer became rabbi of Strážnice after he had received government permission to settle there. In 1797, he became rabbi of Mattersdorf, one of the seven communities (known as the Siebengemeinden, or Sheva kehillot) of Burgenland, where he established a yeshiva. His pupils there included Meir Ash, the rabbi of Uzhhorod. Pressburg (Bratislava) Sofer declined many offers for the rabbinate, but in 1806, he accepted a call to Pressburg (Pozsony in Hungarian; today Bratislava, capital of Slovakia). There, he established a yeshiva, which was attended by as many as 500 pupils. Hundreds of these pupils became the rabbis of Hungarian Jewry. Among them were: For a short period of time during the Napoleonic War in Pressburg in 1809, Moses Schreiber retreated to a small vineyard town, Svätý Jur, where he organised a charity for his fellow citizens affected by the war. Second marriage and children Sofer's first wife Sarah died childless on 22 July 1812. In 1813 (23 Cheshvan 5573), he married for the second time, to Sarel (Sarah) (1790–1832, d. 18 Adar II 5592), the widowed daughter of Rabbi Akiva Eiger, Rav of Poznań. She was the widow of Rabbi Avraham Moshe Kalischer (1788–1812), Rabbi of Piła, the son of Rabbi Yehuda Kalischer, author of Hayod Hachazoka. With his second wife, Sofer had three sons and seven daughters. All three of his sons became rabbis: Avrohom Shmuel Binyamin Sofer (known as the Ktav Sofer or Ksav Sofer); Shimon Sofer (known as the Michtav Sofer), who became the Rav of Kraków; and Yozef Yozpa Sofer. Sofer's descendants named their works after the Hebrew translation of Schreiber (scribe), Sofer's civil surname, along the lines of Sofer's work Chasam Sofer; as, for instance, Michtav Sofer (son), Ktav Sofer (son), the Shevet Sofer (grandson), the Chasan Sofer (grandson), the Yad Sofer (great-grandson), the Daas Sofer (great-grandson), the Cheshev Sofer, and Imrei Sofer (2x great-grandson). Sofer and his family lived at the end