Pulp capping is a dental procedure that protects the dental pulp (the soft tissue inside a tooth) from exposure during a cavity preparation or after a traumatic injury. It aims to preserve the pulp's vitality and avoid more extensive treatments like root canals. There are two main types: direct and indirect pulp capping.