What is the purpose of a child theme in WordPress?

A child theme inherits styles and functions from a parent theme. It’s used to customize a theme safely, ensuring changes are not lost when the parent theme updates.