A root canal is a dental procedure that involves removing the damaged or infected pulp from a tooth and sealing it to prevent further infection. It is necessary when the pulp becomes infected or damaged due to tooth decay, trauma, or other factors.