Pectin is a soluble gelatinous polysaccharide which is present in ripe fruits and is used as a setting agent in jams and jellies.