Dental pulpitis is caused by the pulp in your teeth becoming infected or inflamed. Your teeth have three layers: enamel, dentin, and dental pulp. Each layer has a different structural purpose.