Abstract-Melting of an ultrathin lubricant film confined between two atomically flat surfaces is studied. An excess volume parameter is introduced, the value of which is related to the presence of defects and inhomo geneities in the lubricant. Via minimization of the free energy, the Landau-Khalatnikov kinetic equation is obtained for this parameter. The kinetic equation is also used for relaxation of elastic strains, which in its explicit form contains the relative shear velocity of the rubbing surfaces. With the numerical solution of these equations, a phase diagram with domains corresponding to the sliding and dry stationary friction regimes is built at a fixed shear velocity. A simple tribological system is used to demonstrate that in the dynamic case, three friction regimes can occur, namely, dry, stick slip, and sliding friction. It is shown that a lubricant can melt when the shear velocity exceeds a critical value and with elevation of its temperature. The dependence of the dynamic friction force on the pressure applied to the surfaces, the temperature of the lubricant, and the shear velocity is considered. It is shown that growth of pressure leads to the forced ordering and solidification of the lubricant.