Pectin is a soluble gelatinous substance present in ripe fruit and is used as a setting agent in jams and jellies.