The laser diode is made of two doped gallium arsenide layers. One doped gallium arsenide layer will produce an n-type semiconductor whereas another doped gallium arsenide layer will produce a p-type semiconductor. In laser diodes, selenium, aluminum, and silicon are used as doping agents.