Defect concentrations and their compensating groups have been systematically tuned within UiO-66 frameworks by using modified microwave-assisted solvothermal methods. Both of these factors have a pronounced effect on CO2 and H2O adsorption at low and high pressure.