Heavy tar is a crucial intermediate product during coal combustion. To explore the transformation pathway of N atoms in heavy tar under oxy-coal combustion, a comprehensive molecular model of heavy tar with typical N-containing functional groups was constructed. Different temperatures and chemical equivalence ratios were set for the oxy-coal combustion. The ReaxFF was employed to study various products' distribution and molecular numbers. The reaction network among different precursors and NOx was extracted, and the NO to N2 conversion mechanism was summarized. The results indicated that, like char combustion, the proportion of heavy tar gradually declined, the proportion of light tar and organic gas first rose and then gradually declined, and the proportion of inorganic gas continuously rose during heavy tar combustion. As the temperature increased, the proportion of cyanide precursors decreased, while the proportion of amine precursors and NOx increased. The oxidation of N-containing intermediates became more intense as the O2 content rose, but this oxidation effect was inhibited, and the NOx generation was reduced as the O2 content further increased. NO could bond with NHi, HNO, CN, and activate NO, decomposing to produce N2O, and N2O reacted with H radical to produce N2.