While ionic liquids (ILs) have gained wide interest as potential alternative lubricants able to meet the requirements of next-generation tribological systems owing to their unique physico-chemical properties and promising lubricating behavior, our understanding of the mechanisms by which ILs reduce friction and/or wear is still elusive. Here, we combine macroscale tribological experiments with surface-analytical measurements to shed light on the lubrication mechanisms of a class of halogen-free ILs, namely tetraalkylammonium orthoborate ILs, at steel/steel sliding contacts. The tribological results indicate an improvement of the friction-reducing properties of these ILs as the length of the alkyl chains attached to ammonium cations increases. Ex situ X-ray photoelectron spectroscopy analyses provide further evidence for the dependence of the lubrication mechanism of tetraalkylammonium orthoborate ILs on the IL structure. In the case of tetraalkylammonium orthoborate ILs with asymmetric ammonium cations containing a long alkyl chain, no sacrificial tribofilms were formed on steel surfaces, thus suggesting that the friction-reducing ability of these ILs originates from their propensity to undergo a pressure-induced morphological change at the sliding interface that leads to the generation of a lubricious, solid-like layered structure. Conversely, the higher friction response observed in tribological tests performed with tetraalkylammonium orthoborate ILs containing more symmetric ammonium cations and short alkyl chains is proposed to be due to the inability of this IL to create a transient interfacial layer owing to the reduced van der Waals interactions between the cationic alkyl chains. The resulting hard/hard contact between the sliding surfaces is proposed to lead to the cleavage of boron-oxygen bonds in the presence of water to form species that then adsorb onto the steel surface, including trivalent borate esters and oxalic acid from the decomposition of orthoborate anions, as well as tertiary amines from the degradation of alkylammonium cations induced by hydroxides released during the orthoborate decomposition reaction. The results of this work not only establish links between the molecular structure of a class of halogen-free ILs, their lubricating performance, and lubrication mechanism, but also provide evidence for the existence of multiple mechanisms underpinning the promising lubricating properties of ILs in general. Table of Content (Graphical Abstract)