Jellies are preserved using pectin, which is a fiber found in the cell walls of all fruits. Pectin gives both jam and jelly the ability to be preserved for longer periods.