Chromium creates a thin layer, called a passive layer, on stainless steel. This layer stops rust and corrosion by blocking oxidation.