Localized corrosion has been a challenge for the integrity of mild steel pipelines, specifically at operating conditions where a trace amount of H 2 S is present alongside CO 2 at lower temperatures. The presence of H 2 S will lead to the formation of a protective iron sulfide layer that will decrease the general corrosion rate; however, a trace amount of H 2 S may only form a partially protective mackinawite layer that could result in localized corrosion. In the current study, mild steel specimens (API 5L X65) were exposed to a 1 wt% NaCl solution sparged at 0.096 MPa pCO 2 and 15 ×10 −6 MPa or less pH 2 S ( ≤150 ppm H 2 S/CO 2 ). At pH 5.0 and 30°C the bulk solution was undersaturated with respect to iron sulfide-mackinawite and iron carbonate. At these marginally sour conditions, a H 2 S/CO 2 threshold of approximately 100 ppm was deduced, below which localized corrosion happened. No localized corrosion occurred for the same environmental conditions when H 2 S/CO 2 ratio was above 100 ppm or when there was no H 2 S present.