The electron configuration of chromium is [Ar]3d54s1 and not [Ar]3d44s2 (as suggested by the Aufbau principle). This exception is attributed to several factors such as the increased stability provided by half-filled subshells and the relatively low energy gap between the 3d and the 4s subshells.
The energy gap between the different subshells is illustrated below.

Half filled subshells feature lower electron-electron repulsions in the orbitals, thereby increasing the stability. Similarly, completely filled subshells also increase the stability of the atom. Therefore, the electron configurations of some atoms disobey the Aufbau principle (depending on the energy gap between the orbitals).
For example, copper is another exception to this principle with an electronic configuration corresponding to [Ar]3d104s1. This can be explained by the stability provided by a completely filled 3d subshell.