This research illustrates a spatially distributed cellular automaton aimed at simulating the pitting corrosion process in stainless steels. The cellular automaton model is based on the metal surface discretization into square cells; in any instant, each cell is found to be in one of the following states: (i) passivity (the passive fi lm on the cell surface is stable and protective), (ii) metastability (the passive fi lm is unstable and can either break, causing pitting initiation, or repassivate), and (iii) pitting (the cell has turned into a stable attack area, with no repassivation chance). At the very beginning, all cells are in passivity state. Subsequently, a stochastic process drives the changes in the state of cells, following rules drawn from the kinetics of pitting localized corrosion. In particular, the transition probabilities of each single cell from one state to another are infl uenced by the adjacent cells. The comparison between simulations run with the proposed model and laboratory experimental results demonstrates that the model is suitable for describing pitting corrosion processes.