Switchable "on/off" single-molecule magnet (SMM) behavior can be realized in lanthanide metal-organic frameworks (Ln-MOFs) tuned by the temperature-induced change of the coordination geometry of the lanthanide centers.