The study of defects in crystal structures, including point defects, line defects, and surface defects.