The 'radial-gradient()' function in CSS is used to create a smooth transition between two or more colors radiating outward from a central point, forming a circular or elliptical shape. It allows for customization of color stops, shape, size, and position, enabling complex and visually appealing background designs.