Pectin is extracted from fruits by crushing them and heating them to break down the cell walls. Calcium is added to help the pectin molecules form a gel-like structure.