A rich structural chemistry in π-conjugated hydroisocyanurates: layered structures of A2B(H2C3N3O3)4·nH2O (A = K, Rb, Cs; B = Mg, Ca; n = 4, 10) with high ultraviolet transparency and strong optical anisotropy.