The endodontist removes the inflamed or infected pulp, carefully cleans and shapes the inside of the tooth, then fills and seals the space. Later a crown or other restoration is placed on the tooth to protect and restore it to full function.