A snap ring is a ring that holds components or assemblies onto a shaft or in a housing/bore when installed in a groove. Once installed, the exposed portion acts as a shoulder which holds the specific part in place.
Retaining rings are typically made from carbon steel or stainless steel and may have different finishes for corrosion protection depending on the type of environment in which they are used.