All-inorganic nanocrystals (NCs) are of great importance in a range of electronic devices. However, current all-inorganic NCs suffer from limitations in their optical properties, such as low fluorescence efficiencies. Here, we develop a general surface treatment strategy to obtain intensely luminescent all-inorganic NCs (ILANs) by using designed metal salts with noncoordinating anions that play a dual role in the surface treatment process: (i) removing the original organic ligands and (ii) binding to unpassivated Lewis basic sites to preserve the photoluminescent (PL) properties of the NCs. The absolute photoluminescence quantum yields (PLQYs) of red-emitting CdSe/ZnS NCs, green-emitting CdSe/CdZnSeS/ZnS NCs and blue-emitting CdZnS/ZnS NCs in polar solvents are 97%, 80% and 72%, respectively. Further study reveals that the passivated Lewis basic sites of ILANs by metal cations boost the efficiency of radiative recombination of electron-hole pairs. While the passivation of Lewis basic sites leads to a high PLQY of ILANs, the exposed Lewis acidic sites provide the possibility for in situ tuning of the functions of NCs, creating opportunities for direct optical patterning of functional NCs with high resolution.