The most common function of a diode is to allow an electric current to pass in one direction (called the diode's forward direction), while blocking current in the opposite direction (the reverse direction).
A semiconductor diode's current-voltage characteristic can be tailored by selecting the semiconductor materials and the doping impurities introduced into the materials during manufacture.