An ionothermal reaction has generated a cobalt hydroxyacetate magnet that contains a three-dimensional Co–O–Co framework consisting of vertex-sharing octahedral chains bridged by another octahedra via edge-sharing and shows spin glass behavior.