Passivation is a process that enhances the corrosion resistance of a material by creating a protective passive layer on its surface. Stainless steel achieves this through the presence of chromium, which forms a thin, stable, passive film of chromium oxide when exposed to oxygen, preventing rust and corrosion.