fled to Heilbronn in order to escape the turmoil of the war - the castle and the town passed to the archdiocese of Mainz. The Plague of 1635 decimated the population. After the end of Swedish occupation in 1636, Hirschhorn was mortgaged to an official at the court of the Elector of Cologne, Rudolf Raitz von Frentz. The population, which had already been afflicted by the war, had to suffer exploitation and impoverishment. The Carmelites moved back into their monastery. Around the middle of the seventeenth century Hirschhorn's population only amounted to a fifth (c. 200) of what it had been at the beginning of that century. Following the Peace of Westphalia (1648), new inhabitants from Palatinate, the Electorates of Mainz and Trier, Lorraine, Tyrol and Switzerland settled in the town. Between 1676 and 1699, Hirschhorn was mortgaged to Westphalian baron Johann Wilhelm von der Reck, but in 1700 direct rule by the Electorate of Mainz was established. Hirschhorn was now the seat of an Amtskellerei (an administrative unit) within the higher administrative unit (Oberamt) of Starkenburg with its centre in Heppenheim. Transfer to Hesse in 1803 In 1803, Hirschhorn came into the possession of the Grand Duchy of Hesse-Darmstadt, and the monastery was dissolved once again. From 1821 to 1832 Hirschhorn was an administrative district of its own, then it became part of the district of Heppenheim, and from 1848 to 1852 it belonged to the district of Erbach. There were skirmishes between revolutionaries and Federal troops in and around Hirschhorn in 1849 in connection with the revolution of 1848/49 in Baden. In 1852 Hirschhorn was joined to the district of Lindenfels, and in 1856 it returned to the district of Heppenheim, which later became the district of Bergstraße. Steam navigation on the Neckar was introduced in 1841 and meant a moderate economic upturn. Horse-drawn barges finally disappeared from the river in 1878, when a seventy-mile-long chain was put on the river bed on which tugs could pull themselves upstream or downstream. A lot of bargemen became redundant and lost their jobs. The Neckar Valley Railway started to operate, connecting Hirschhorn with Heidelberg and Mosbach. The railway station was built outside the historical precinct of the town in the direction of Neckarsteinach, thus providing an incentive for further expansion of the town in this direction. On the Neckar, a weir with a lock and a bridge were completed in