Pectin is a natural polysaccharide found in the cell walls of fruits and vegetables, primarily used as a gelling agent in food production, particularly in jams and jellies. It also has applications in the pharmaceutical and cosmetic industries due to its stabilizing and thickening properties.