Various heterocycles containing phosphorus and nitrogen are easily synthesized from readily available H-phosphinate building blocks. Aminomethylation of these H-phosphinates is followed by in situ cyclization through substitution or cross-coupling to produce novel heterocycles in moderate to good yields.