Diodes make use of the nature of a p-n junction to achieve different behaviors for different current directions. Other components may be included in the diode package to achieve specific purposes.