Teeth are composed of three layers: the enamel, the outer layer of the tooth (and the hardest part of the body); the dentin, which is the hard layer inside the tooth; and the pulp, which is the space at the centre of the tooth where the live tissue and the nerve is located.
When the pulp is exposed to the outside, the tissue becomes contaminated and eventually infected. This exposure can happen for many reasons, such as a large cavity or a tooth fracture.
Once this exposure takes place, the treatment is usually a root canal. A root canal is the process of removing infected and dead tissue from the pulp space of the tooth, then disinfecting and sealing the space. After this procedure is finished, the dentist will usually place a crown over the tooth to protect it against fracture.
Nowadays, root canals are performed with advanced techniques and materials, making them more comfortable and faster than in the past.