Scientists have demonstrated an interlayer-space confined chemical design method for the synthesis of single-atom doped tantalum disulfide (TaS2) molecular superlattice, where ferromagnetism was successfully introduced in the superconducting TaS2 layers.