A new strategy involving the computer-assisted design of substituted imidazolate-based ionic liquids (ILs) through tuning the absorption enthalpy as well as the basicity of the ILs to improve SO capture, CO capture, and SO /CO selectivity was explored. The best substituted imidazolate-based ILs as absorbents for different applications were first predicted. During absorption, high SO capacities up to ≈5.3 and 2.4 molSO2 mol could be achieved by ILs with the methylimidazolate anions under 1.0 and 0.1 bar (1 bar=0.1 MPa), respectively, through tuning multiple N⋅⋅⋅S interactions between SO and the N atoms in the imidazolate anion with different substituents. In addition, CO capture by the imidazolate-based ILs could also be easily tuned through changing the substituents of the ILs, and 4-bromoimidazolate IL showed a high CO capacity but a low absorption enthalpy. Furthermore, a high selectivity for SO /CO could be reached by IL with 4,5-dicyanoimidazolate anion owing to its high SO capacity but low CO capacity. The results put forward in this work are in good agreement with the predictions. Quantum-chemical calculations and FTIR and NMR spectroscopy analysis methods were used to discuss the SO and CO absorption mechanisms.