The environmental and human health risk of heavy metals (HMs) in petroleum based oily sludge (OS) varies depending upon the source of origin of the crude oil and treatment processes practiced at the refineries. Consequently, the present study explores the potential risk associated with HMs of OS obtained from different refinery sites to the environment and human health. The results showed that HMs (Cu, Ni, Zn, Mn) present in OS surpasses the permissible limit of WHO guidelines except for Cr. Additionally, the Igeo value (grade 3-6), Ef (2.48-121.4), PLI (5.12-22.65), Cd (32.48-204.76) and PERI (grade 1-5) confirmed the high level of HMs contamination into the OS and its risk to the environment. Besides, the hazard index (HI) and the total carcinogenic risk (TCR) for HMs show substantial risk to both adult and children health. Likewise, the G-mean enzyme index and potential soil enzyme risk index (PSERI) of the OS showed a high risk to soil biological properties. Furthermore, statistical analysis confirmed the heterogeneity in properties of the OS and its potential impact on the soil ecosystem arising from different sites. Finally, the study unveils a novel perspective on the environmental and human health consequences associated with the OS. Environmental ImplicationsThe oily sludge (OS) contains several pollutants such as heavy metals, hydrocarbons, and toxic organic compounds. The OS source heavy metals are of big concern because they bind to the soil organic matter and pose a threat to both organisms and environment. These can result in contamination of the food chain and groundwater thereby causing harm to both organisms and ecosystems. Consequently, a comprehensive study of the OS properties and understanding its potential risk to the environment is not only instrumental in mitigating broader environmental challenges but also aids in the development of effective treatment and disposal methods.