The article presents the results of studies to reduce the wear of rails and wheels by creating new lubricant compositions for the lubrication of rails based on the replacement of graphite with petroleum coke. Cheap components of the composition, easily accessible products or waste products are presented. During the tests, it was determined that the composition is easily applied to the rail, does not flow from the side surface of the rail head, has a high protective effect. When the rolling stock moves, the grease is spread by the wheels, ensuring uniform distribution on the side surface of the rail head. Including in the composition of hydrocarbons can be biodegradable. This confirms the environmental safety and harmlessness of this composition. The viscosity of the composition is regulated by the content of spent diesel oil. The components of the composition are easily mixed to form a stable consistency during storage. The composition to prevent wear in the wheel-rail friction pair, in which graphite is replaced by a cheaper component -petroleum coke, has high efficiency and minimal impact on humans and the environment.