Ionic liquids (ILs) mediate fast, simple and cheap access to 1,6-ketoesters in high diastereoselectivities and good yields. The reaction protocol is robust and the 1,6-ketoesters can be obtained in gram scale after a simple filtration protocol. Moreover, the 1,6-ketoesters are potent gelators in hydrocarbon solvents.