The selective nitrosation of β-dicarbonyl compounds with sodium nitrite was carried out under1-methyl-3-carboxymethylimidazolium chloride, prepared from N-methylimidazole andchloroacetic acid, as an acidic ionic liquid. The reaction was found to proceed under relativelymild conditions with excellent conversion and selectivity. The ionic liquid was recycled andreused.