Background: Lactate dehydrogenase (LDH) is one of the important enzyme systems for glycolysis and gluconeogenesis. It can catalyze the reduction and oxidation reaction between propionic acid and L-lactic acid, which is usually overexpressed in cancer cells. Therefore, inhibiting the activity of LDH is a promising way for the treatment of cancer. In this study, an effective method based on ligand fishing and ultra performance liquid chromatography-mass spectrum (UPLC-MS) was established to screen and identify active ingredients from Selaginella doederleinii with potential inhibitory activity for LDH. Methods: Firstly, LDH was immobilized on the magnetic nanoparticles (MNPs), three immobilization parameters including LDH concentration, immobilization time and pH were optimized by single factor and response surface methodology for maximum (max) immobilization yield. Then, a mixed model of galloflavin and chlorogenic acid (inhibitors and non-inhibitors of LDH) was used to verify the specificity of immobilized LDH ligand fishing, and the conditions of ligand fishing were further optimized. Finally, combined with UPLC-MS, immobilized LDH was used to simultaneously screen and identify potential LDH inhibitors from the ethyl acetate extract of Selaginella doederleinii. Results: The prepared fishing material was comprehensively characterized by scanning electron microscopy (SEM), transmission electron microscope (TEM), X-ray diffraction (XRD) and fourier transform infrared spectrometer (FT-IR). The optimal immobilization conditions were obtained as LDH concentration of 0.7 mg/mL, pH value of 4.5, and immobilization time of 3.5 h. Under these conditions, the max immobilization yield was (3.79 ± 0.08) × 10 3 U/g. The specificity analysis showed that immobilized LDH could recognize and capture ligands, and the optimal ligand fishing conditions included that the incubation time was 30 min, the elution time was 20 min, and the concentration of methanol as eluent was 80%. Finally, two LDH inhibitors, amentoflavone and robustaflavone, were screened by immobilized LDH from the ethyl acetate extract of Selaginella doederleinii. Conclusions: The study provided a meaningful evidence for discovering the bioactive constituents in ethyl acetate extract of Selaginella doederleinii related to cancer treatment, and this ligand fishing method was feasible for screening enzyme inhibitors from similar complex mixtures.