A novel guest-responsive porous magnet with a flexible pseudo-pillared-layer structure was synthesized and exhibited guest-selective magnetic phase switching prompted by the changes in the interlayer distance arising from water or methanol adsorption/desorption.