Sawdust, a cheap by-product of the timber and forestry industry, was considered as a framework structure to prepare superabsorbent polymer with acrylic acid (AA) and acrylamide (AM), the synthetic monomers. The effects of initiator content, crosslinker content, AA content, AM content, degree of neutralization of AA, and reaction temperature on the swelling rate of superabsorbent polymer were investigated. The synthesized polymer was characterized by Fourier transform infrared spectroscopy (FTIR), X-ray diffraction (XRD), scanning electron microscopy (SEM), and thermogravimetric analysis (TGA). Under optimal synthesis conditions, the results showed that the swelling rate of the polymer in deionized water and 0.9% NaCl solution reached 738.12 and 90.18 g/g, respectively. The polymer exhibits excellent swelling ability, thermal stability, and reusability. After the polymer was introduced into the samples (soil or coal), the water evaporation rate of the samples was significantly reduced, and the saturated water holding capacity and pore structure were also significantly improved.