The first organically templated tin(IV) phosphate has been isolated and its structure solved from powder X-ray diffraction data; it exhibits a one-dimensional inorganic network built up from chains of trimers of tin(IV) octahedra on which phosphate tetrahedral groups are grafted interacting with water molecules and organic moieties.