The lubricating properties of an ionic liquid on gold surfaces can be controlled through application of an electric potential to the sliding contact. A nanotribology approach has been used to study the frictional behavior of 1-butyl-1-methylpyrrolidinium tris(pentafluoroethyl) trifluorophosphate ([Py(1,4)]FAP) confined between silica colloid probes or sharp silica tips and a Au(111) substrate using atomic force microscopy. Friction forces vary with potential because the composition of a confined ion layer between the two surfaces changes from cation-enriched (at negative potentials) to anion-enriched (at positive potentials). This offers a new approach to tuning frictional forces reversibly at the molecular level without changing the substrates, employing a self-replenishing boundary lubricant of low vapor pressure.