A novel two-dimensional dysprosium(III) complex, [Dy(L)(CH3COO)]·0.5DMF·H2O·2CH3OH (1), has been successfully synthesized from a new pyridine-N-oxide (PNO)-containing ligand, namely, N'-(2-hydroxy-3-methoxybenzylidene)pyridine-N-oxidecarbohydrazide (H2L). Single-crystal X-ray diffraction studies reveal that complex 1 is composed of a dinuclear dysprosium subunit, which is further extended by the PNO part of the ligand to form a two-dimensional layer. Magnetic studies indicate that complex 1 shows well-defined temperature- and frequency-dependent signals under a zero direct-current (dc) field, typical of slow magnetic relaxation with an effective energy barrier Ueff of 33.6 K under a zero dc field. Interestingly, powder X-ray diffraction and thermogravimetric analysis reveal that compound 1 undergoes a reversible phase transition that is induced by the desorption and absorption of methanol and water molecules. Moreover, the desolvated sample [Dy(L)(CH3COO)]·0.5DMF (1a) also exhibits slow magnetic relaxation but with a higher anisotropic barrier of 42.0 K, indicating the tuning effect of solvent molecules on slow magnetic relaxation.