A new type of IL/MOF composite was prepared through a precise design to achieve deep removal of sulfur dioxide (SO2), and the molecular sieving of SO2, CO2, and N2 can be achieved.