A crystallographic defect is any part of a crystal that is different from a theoretical "perfect" crystal structure. Defects can be caused by a different chemical element (an impurity) or by changes to the chemical bonds of the structure.
Even though the word "defect" has the common subtext of being a problem or failure, crystallographic defects can give crystals many useful properties. Defect engineering is the field of materials science that deals with creating defects in crystals that give them properties people want. Colouring synthetic gemstones and semiconductor doping are examples of defect engineering.

A point defect is a defect that happens at one location in the crystal, and does not change the structure further away from that point. There are four main types of point defect, and a few more specific subtypes.

A line defect is a defect that follows a line through the whole structure. The most important type of line defect is a dislocation, where the layers of the crystal are moved relative to the line. The amount and direction of movement makes a vector called the Burgers vector.
Other types of linear defects exist. A disclination is a type of linear defect where the atoms along the line have a different coordination number from the rest of the crystal, causing the angles of the chemical bonds to change. A disclination is said to be negative if the angles are smaller than the main structure (higher coordination number), or positive if the angles are larger (lower coordination number). In most solid crystals, disclinations are found in pairs of equal sign.
A plane defect is a defect that follows a two-dimensional plane. In three-dimensional materials, the sides of a crystal are plane defects. As well as the edges, many types of plane defect are found inside crystals: