The exact date of the first Kladdkaka is unknown but it was a popular food during the Middle Ages. It was most likely created in medieval Europe and its popularity declined after 1689 when Sweden stopped exporting saltpeter to France which led to an increase in black pepper sales.