Two species of ichneumon wasps (Ichneumonidae), Gelanes horstmanni Khalaim, sp. n. (Tersilochinae) and Idiogramma elbakyanae Khalaim sp. n. (Tryphoninae), are described from the pine forest at 2800–2900 m from the State of Tlaxcala in Central Mexico; a third species, I. comstockii (Ashmead), is found to occur in the State of Nuevo León in Northeast Mexico. The genera Gelanes Horstmann and Idiogramma Förster are associated with xyelid sawflies (Xyelidae), and both, as well as the tryphonine tribe Idiogrammatini, are recorded from Mexico for the first time. An identification key to the two Idiogramma species occurring in Mexico is provided.