Although polymer-based self-lubricating materials have rapidly developed recently, intelligent lubricating materials with self-adaptable lubrication with external conditions changing are highly demanded, especially for harsh conditions. Herein, a shape memory epoxy resin based on the biphenyl units (BPEP) with tunable tribological behavior was systematically studied. X-ray diffraction (XRD), field emission scanning electron microscope (SEM), laser confocal three-dimensional profiler, and optical microscope were applied to analyze the friction and wear mechanism. Due to the presence of the specific biphenyl structural units, which could be performed a switching phase between crystalline and amorphous, that allows the self-assembly of the polymer chain under pi-pi interaction. As a result, the improving mechanical properties enable the BPEP to perform outstanding self-lubricating in a wide temperature range, and the friction coefficient (COF) can be tuned in a wide range of 0.10 similar to 0.175 by adjusting the temperature. The shape memory effect of the polymer refers to modulus changing and heat conversion during the shape morphing, and a thermal tunable tribological was observed based on the physicochemical properties varying of polymer with temperature changing. The shape memory effect of BPEPs drives the wear self-compensation so that a low wear rate (6.94 x 10(-5) mm(3) N-1 m(-1)) at 110 degrees C was obtained. The superb lubricating properties of this BPEP could broaden the application scope of shape memory polymers in the field of intelligent lubricating materials, and it is expected to guide future studies on the thermal regulating of tribological behavior.