This thesis mainly describes recent development in the synthesis of N- and O-containing heterocycles, which were conducted under transition-metal-free condition. A series of heterocycles like quinazolinones, quinazolinimines, quinazolinamines, aminoisoquinoline and dibenzoxazepinamines etc. were synthesized under transition-metal-free condition as presented in this thesis, which aims to provide a green, convenient and efficient methodology for the construction of the compounds bearing these units.