Purpose: Interpretable machine learning (ML) models can help researchers and policymakers make well-informed decisions about soil and environmental protection. This study aimed to predict metals (including potential toxic elements) and their oxides in a topsoil using ML techniques with their subsequent interpretation. Materials and methods: We demonstrated it using a dataset containing eleven elements, including As, Co, Cr, Fe