Abstract In the current study, by solvothermal reaction of Cu(NO3)2·3H2O or Co(NO3)2·6H2O with the H4Tdada ligand in a mixed solvent of H2O and DMA, two novel coordination polymers (CPs) were prepared and their chemical formulae are {[(CH3)2NH2]2[Co(Tdada)](H2O)3}n (1) and {[Cu2(Tdada)(H2O)(DMA)](DMA)3}n (2, H4Tdada = 5,5′-((thiophene-2,5-dicarbonyl) bis(azanediyl)) diisophthalic acid). The single crystal X-diffraction studies show that compound 1 shows a 3D 2-fold interpenetrated framework with a 4-connected dia topology and compound 2 shows a non-interpenetrated framework with a 4-connected lon topology. The magnetic investigations indicate that the two compounds possess antiferromagnetic coupling between neighboring metallic ions, and the Curie-Weiss constant is −7.5 K for 1 and -6.04 K for 2, respectively. Their treatment activity on viral myocarditis was evaluated and the related mechanism was discussed at the same time. First of all, the Cell Counting Kit-8 was carried out to evaluate the toxicity of compounds 1 and 2. The Annexin V-FITC Apoptosis Detection Kit was conducted and the apoptosis of the virus infected cardiomyocytes was measured. In addition to this, the ELISA detection was used to measure the hs-cTnT in the cardiomyocytes after compound 1 or 2 treatment.