What is the advantage of using stainless steel instead of mild steel?

stainless steel has high corrosion resistance properties than the mild steel. stainless steel also has hard varieties like martensitic stainless steel which can ignore the hardening capacity of the mild steel.