Drought and heavy metal stress threaten sustainable crop production and ecosystems, highlighting the urgent need for resilient agricultural practices. The synthesis of lignin-based hydrogel (L-GH) and foliar selenium (Se) offers a potential solution to mitigate these adverse effects. However, comprehensive research on their applications in alleviating drought stress, remediating heavy metals, and enhancing crop production is limited. To address these gaps, the optimal ratio for L-GH synthesis using sodium lignosulfonate (L) and γ-polyglutamic acid (γ-PGA) as raw materials was determined through the response surface method (RSM). The synthesis mechanism and possible functional groups and structures of L-GH were identified by Fourier infrared spectroscopy (FTIR) and other characterization techniques. A pot experiment assessed the effects of L-GH (L0=0; L1=0.2 %; and L2=0.5 %) and foliar Se (L0=0; Se=3 mg.L−1) under drought (H=75 % control; HA=45 % field water capacity) on Chinese broccoli growth and the uptake of heavy metals cadmium, copper, zinc (Cd, Cu, Zn). Results indicated that L-GH hydrogel, with a layered porous structure and hydrophilic functional groups, achieved a water absorption rate of 389.17 g.g−1. Under drought and heavy metal stress, L-GH combined with Se effectively reduced the absorption of Cd and Cu. In the L2+Se treatment (0.5 % L-GH + 3 mg.L−1 Se), Cd and Cu contents decreased by 31.06 % and 72.14 %, respectively. Simultaneously, the photosynthetic activity of the plant increased, stress resistance was enhanced, and both growth and biomass accumulation were promoted. Malondialdehyde (MDA) content decreased by 78.82 %, and chlorophyll fluorescence parameters (PSII potential activity Fv/F0 and maximum photochemical efficiency Fv/Fm) increased by 49.92 % and 11.97 %, respectively. Redundancy analysis (RDA) revealed that L-GH could potentially decrease the absorption of heavy metals by enhancing soil moisture (SWC) and pH levels, increasing aggregate stability (WAS) and organic carbon (SOC) content, enhancing plant stress resistance, and promoting growth. In this study, a novel material (L-GH) capable of retaining water and immobilizing heavy metals in soil was successfully developed. The concurrent application of L-GH with Se has been shown to effectively mitigate the combined stresses of drought and heavy metals on the growth of Chinese broccoli. These findings offer valuable insights for the remediation of soil contaminated by both drought and heavy metals.