Pectin is a polysaccharide found in the cell walls of plants, particularly in citrus fruits like lemons and oranges which can contain up to 30% pectin. It is extracted through boiling plant material like citrus peels in water and acid, then removing other components through centrifugation and enzymatic treatment. Pectin is a white powder that is soluble in water and forms gels. It is used as a thickening agent in foods and pharmaceuticals and can help treat diarrhea as an intestinal soother.