A diode is a two-terminal electronic component that conducts primarily in one direction.Semiconductor diodes were the first semiconductor electronic devices.The most common type today is a crystalline piece of semiconductor material with a p-n junction connected to two electrical terminals.