INTRODUCTIONCorrosion is a significant problem in various industries, including marine, aerospace, and construction, resulting in substantial economic losses and safety risks. Mild steel, a widely used material, is susceptible to corrosion, particularly in harsh environments like seawater. The use of corrosion inhibitors is a common method to mitigate corrosion. However, most commercial inhibitors are toxic and hazardous to the environment. Therefore, there is a growing interest in exploring eco-friendly and sustainable corrosion inhibitors. Onion extract, a natural and non-toxic substance, has shown promising corrosion inhibition properties. This research aims to investigate the effectiveness of onion extract as a corrosion inhibitor for mild steel in a sodium chloride medium, simulating seawater conditions. Corrosion is an electrochemical process that occurs when metals react with their environment, resulting in the deterioration of the metal surface. Mild steel, a type of carbon steel, is widely used in various applications due to its strength, durability, and affordability. However, its high reactivity makes it prone to corrosion, particularly in environments with high chloride ion concentrations, such as seawater. The use of corrosion inhibitors is a common method to reduce corrosion rates. These inhibitors work by adsorbing onto the metal surface, forming a protective film that prevents corrosion reactions. Corrosion is a pervasive issue affecting various industries, including marine, aerospace, and construction, resulting in substantial economic losses and safety risks (1-3). Mild steel, a widely used material, is susceptible to corrosion, particularly in harsh environments like seawater (4, 5). The use of corrosion inhibitors is a common method to mitigate corrosion, but most commercial inhibitors are toxic and hazardous to the environment (6-8). Therefore, there is a growing interest in exploring eco-friendly and sustainable corrosion inhibitors (9-11).Onion extract, a natural and non-toxic substance, has shown promising corrosion inhibition properties (11). The extract contains various compounds, including flavonoids, phenolic acids, and amino acids, which can adsorb onto the metal surface, forming a protective film that prevents corrosion reactions (11). Previous studies have investigated the corrosion inhibition properties of onion extract for mild steel in acidic environments, but its effectiveness in seawater conditions has not been extensively studied (11).Traditional corrosion inhibitors, such as chromates and phosphates, have been widely used but are toxic and hazardous to the environment. The increasing awareness of environmental protection and sustainability has led to a growing interest in exploring eco-friendly corrosion inhibitors. Plant extracts, such as onion extract, have shown promising corrosion inhibition properties due to their natural compounds, including flavonoids, phenolic acids, and amino acids. Onion extract has been reported to exhibit corrosion inhibition properties for mild steel in acidic environments, but its effectiveness in seawater conditions has not been extensively studied. This research aims to bridge this knowledge gap and explore the potential of onion extract as a sustainable corrosion inhibitor for mild steel in a sodium chloride medium.