The main purpose of root canal treatment is to fill all gaps without leaving any residue in the root.