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

Many stainless steels are stronger than mild steel. Stainless steel is also corrosion resistant to many different environments where mild steel is not.