In this study, β-CD was used as a receptor to prepare three novel SDES, which were used to pretreat corn stalks for obtaining fluorescent lignin and promoting biomass pyrolytic saccharification. It was found that GA-residue had a high cellulose retention ratio (94.63%) and the highest lignin removal ratio (61.78%). Besides, the yield of carbohydrates in bio-oil was increased from 0.63% to 49.37%, and fluorescent lignin was prepared for explosion detection, fluorescent film, and information encryption. It was confirmed that the weak interaction between β-CD and HBDs or dimer was mainly performed by hydrogen bond and van der Waals force. The minimum frontier orbital energy difference ΔEU (0.1976 a.u.) and high binding energy (-5456.71 kJ/mol) between molecules were calculated by DFT. Moreover, the mechanism of biomass pretreatment was explored. The green and efficient SDES developed in this study were of great significance for biomass pretreatment and efficient utilization of components.