Soil contamination with oil products is an environmental aspect of LDz, which has formed historically, so-called historical pollution, and is a problem in certain places, mainly such as fuel and heating fuel bases and locomotive staffing points, wagon technical maintenance points, parking areas for diesel locomotives and diesel train wagons, places at stations (parking or separate tracks) where petroleum products are handled or diesel locomotives standing before the exit signals.
Soil and groundwater are monitored at the stations where the impact thereof on the environment and directly on the soil and groundwater is the greatest. Such supervision is carried out in Ventspils, Rīga, Jelgava, Daugavpils, Krustpils, Rēzekne and Mangaļi. In 2019, the soil and groundwater monitoring network was established in the territories of Gulbene, Pļavinas and Torņakalns stations.
Groundwater monitoring wells are installed in the border station with Belarus "Indra", as well as in the above mentioned Krauja, where remediation works are carried out.