YFe2(H,D)4.2 compounds undergoes a isotope sensitive FM-AFM transition at TM0. The FM structure is formed of Fe moments perpendicular to the monoclinic b axis. AFM structure is formed by antiparallel Fe layers separated by non-magnetic Fe layer. One Fe site among eight loses its moment at TM0 due to larger Fe–H bonding. Magnetic properties are driven by the monoclinic distortion induced by D order.