In Jewish law (halacha), the 39 categories of prohibited labor (melachot) on Shabbat derive from the Tabernacle's construction. Making jam—transforming fruit and sugar into a gelled preserve through cooking—violates a specific melachah that many find surprising.
Memasek (also transliterated Memaḥek in some traditions) is the melachah of transforming a solid into a liquid or soft mass through cooking or heating. It's a sub-category of Bishul (cooking), but distinct in its focus on textural transformation rather than merely applying heat.
This phase change—solid → gel—is the hallmark of Memasek. It's why making jam, jelly, marmalade, or fruit butter is prohibited on Shabbat, even if the fruit was pre-cooked. The gelling is the new act.
Note: This is a general overview. For specific halachic questions, consult a qualified rabbinic authority.