Defect formation in ZnO epilayers grown by molecular beam epitaxy (MBE) is studied by employing optical characterization techniques such as photoluminescence (PL) and optically detected magnetic resonance (ODMR). Excess of oxygen during the growth was fou