In summary, anthocyanin could protect cardiac function and inhibit IL-17-related inflammation and fibrosis, which indicates its therapeutic potential in the treatment of diabetes mellitus-related complications. Here, IL17A is linked to diabetes mellitus.