The chromium is key to stainless steel's rust resistance ... who was studying steel alloys to prevent corrosion in gun barrels. Brearley created an alloy from iron, carbon, chromium and nickel.