Pectin is widely used in the food and pharmaceutical industries. However, data on sweet potato pectin extraction and structural property analyses are lacking. Here, for the high-value utilization of agricultural processing waste, sweet potato residue, a byproduct of sweet potato starch processing, was used as raw material. Ammonium oxalate, trisodium citrate, disodium hydrogen phosphate, hydrochloric acid and citric acid were used as extractants for the pectin constituents, among which ammonium oxalate had a high extraction rate of sweet potato pectin, low ash content and high molecular weight. Structural and gelation analyses were conducted on ammonium oxalate-extracted purified sweet potato pectin (AMOP). Analyses showed that AMOP is a rhamnogalacturonan-I-type pectin, with a molecular weight of 192.5 kg/mol. Chemical titration and infrared spectroscopy analysis confirmed that AMOP is a low-ester pectin, and scanning electron and atomic force microscopy demonstrated its linear molecular structure. Gelation studies have revealed that Ca2+ is the key factor for gel formation, and that sucrose significantly enhanced gel hardness. The highest AMOP gel hardness was observed at pH 4, with a Ca2+ concentration of 30 mg/g, pectin concentration of 2%, and sucrose concentration of 40%, reaching 128.87 g. These results provide a foundation for sweet potato pectin production and applications.