The history of the Jews in Denmark goes back to the 1600s. At present, the Jewish community of Denmark constitutes a small minority of about 6,000 persons within Danish society. The community's population peaked prior to the Holocaust at which time the Danish resistance movement (with the assistance of many ordinary Danish citizens) took part in a collective effort to evacuate about 8,000 Jews and their families from Denmark by sea to nearby neutral Sweden, an act which ensured the safety of almost all the Danish Jews. Medieval Danish art contains depictions of Jews—visibly wearing pointed hats—but there is no evidence that any Jews actually lived in Denmark during that time. With the conclusion of the Danish Reformation in 1536, Jews along with Catholics were prohibited entry into Denmark. The first known settlement on Danish territory was based on a royal dispensation. Industrious Christian IV founded Glückstadt on the river Elbe in today's German state of Schleswig-Holstein in 1616. When it initially threatened to founder, he decided in 1619 to allow Jewish merchant Albert Dionis to settle in the town. He thus hoped to ensure its success. This dispensation was extended to a few other Jews, and in 1628, their status was formalized by being promised protection, the right to hold private religious services, and maintain their own cemetery. Albert Dionis gained special status within the Danish royal court, apparently as a source of credit for ambitious projects. Gabriel Gomez, who also attained status, persuaded Frederik III to allow Sephardic Jews to reside in Denmark while conducting trade. At that time, Ashkenazi Jews, in contrast to the Sephardim, were forbidden to enter unless they were specifically granted letters of safe passage, and were subject to considerable fines if caught without the required documents; nevertheless, many of the Jews who settled in the kingdom in the coming years were Ashkenazi. Following the costly Thirty Years' War, which created a fiscal crisis for the Danish crown, Frederik III proclaimed absolute monarchy in Denmark.