Shear dynamics simulation under extreme pressure was used to optimise the composition of ester-based lubricant base oil and extreme pressure additives. As a result, the ester-based lubricant in the weak-gel drilling fluid achieves reduction and increases the efficiency in drilling construction, and the field operation efficiency improves. The results of base oil lubrication simulation show that three base oils, namely, methyl oleate, ethyl oleate and butyl oleate, can be stably adsorbed on the surface layer of the shear surface. Methyl oleate has the lowest system temperature after shear stabilisation and has a high load-bearing capacity. The shear stress of methyl oleate decreases by changing the initial shear temperature and speed. It increases by 6.36 MPa when the speed increases from 10 m/s to 30 m/s. At this time, the shear stress of butyl oleate increases by 10.11 MPa. The results of the four-ball friction experiments show that the radius of the abrasion spot of methyl oleate is 179.83 μm, which is smaller than that of the other two base oils. Moreover, the friction coefficient of methyl oleate is 0.0018, which is approximately 1/3 of that of butyl oleate. Methyl oleate has better lubrication efficiency. The shear simulation results are consistent with the experimental results. The simulation can be used for the molecular design of lubricant materials. The oleic acid amide–containing amine group and the glyceride oleic–containing hydroxyl group were selected as the extreme pressure functional components for shear simulation. Results show that the shear stress of oleic acid amide is much lower than that of oleic acid glyceride when the initial shear temperature and speed change. The extreme pressure lubrication component–containing amine group is better than the extreme pressure lubrication material–containing hydroxyl group. The effects of different oleamide contents in the two-component mixtures on the lubricating properties were investigated through shear simulation, with methyl oleate as the base oil and oleamide as the extreme pressure functional component. The simulation results show that the lubricant has the optimal shear stress when 10% oleamide is added to the lubricant. The base properties of the lubricant were tested using a mixture of 90% methyl oleate and 10% oleamide, formulated as a lubricant. Results show that the friction coefficient can be reduced to 0.03 when 0.5% of the lubricant is added to the base mud. Moreover, the lubricant film formed shows high strength. Then, 1% lubricant was added to the weak-gel drilling fluid to evaluate the effect of the lubricant on the gel structure of the drilling fluid. Results show that adding lubricant does not affect the rheological properties of the drilling fluid. The gel structure of the system also remains stable even after 7 days of continuous ageing. The results of the field experiments in Hua3-01 well show that adding 1% ester-based lubricant to the field drilling fluid reduces the drilling friction by 33%. Thus, the efficiency of directional side drilling can be effectively improved, complicated accidents, such as poor starting and stopping of drilling and stuck jamming, can be avoided, and the goals of reducing quantity and increasing efficiency can be completed.