C-glycopyranosyl derivatives of six-membered heterocycles are scarcely represented in the chemical literature and the title 3-glycopyranosyl-1,2,4-triazines are completely unknown. In this paper, the first synthesis of this compound class is accomplished by the cyclocondensation of C-glycosyl formamidrazones and 1,2-dicarbonyl derivatives. In addition, the synthesis of C-glycopyranosyl 1,2,4-triazin-5(4H)-ones was also carried out by the transformation of the above formamidrazones with α-keto-carboxylic esters. Inverse electron demand Diels–Alder reactions of 3-glycopyranosyl-1,2,4-triazines with a bicyclononyne derivative yielded the corresponding annulated 2-glycopyranosyl pyridines.