Pectin-g-polyacrylamide (denoted as Pec-g-PAAm) and pectin-g-polyacrylic acid (denoted as Pec-g-PAA) were synthesized using pectin, acrylamide, and acrylic acid as starting materials. The grafted polymers were characterized using Fourier transform infrared spectroscopy (FTIR), thermogravimetric analyser (TGA), and scanning electron microscopy (SEM). The corrosion inhibition behaviour of the grafted polymers on mild steel in 3.5% NaCl was evaluated electrochemically through Tafel polarization and impedance studies. The corrosion inhibition performance of both the polymers was found to be around 85%.