Defects and dopants are usually introduced during the synthesis of the ZnO nanostructure, either by controlling their formation or accidentally obtained during the growing process through contamination.