Corrosion is a significant challenge in the oil and gas industry, particularly in the context of pipelines used to transport various fluids. The integrity of these pipelines is critical to operational efficiency and environmental safety, driving the critical need for effective corrosion mitigation strategies. This study investigates the potential of sorghum extract as a natural corrosion inhibitor for API 5L Class B steel, a standard material commonly used in pipeline construction. Through a series of controlled experiments, the efficacy of sorghum extract in reducing corrosion rates was carefully evaluated. The results showed that sorghum extract exhibited promising characteristics as a corrosion inhibitor, significantly slowing the corrosion process compared to untreated samples. In addition, the study explored the underlying mechanisms underlying the action of sorghum extract, including its chemical composition and interaction with metal surfaces. The findings of this study underscore the potential of sorghum extract to serve not only as an effective means of combating corrosion but also as a more environmentally friendly alternative to traditional synthetic inhibitors. This is in line with the increasing industry emphasis on sustainability and the reduction of hazardous pollutants. Consequently, the results of this study may contribute to the development of innovative and economically viable technologies aimed at increasing pipeline life while minimizing ecological impacts. Send feedback.