Background: Anthocyanins are common substances with many agro-food industrial applications. However, anthocyanins are generally considered to be found only in natural plants. Our previous study isolated and purified the fungus Aspergillus sydowii H-1, which can produce purple pigments during fermentation. To understand the characteristics of this strain, a transcriptomic and metabolomic comparative analysis was performed with A. sydowii H-1 from the second and eighth days of fermentation, which confer different pigment production. Results: We found five anthocyanins with remarkably different production in A. sydowii H-1 on the eighth day of fermentation compared to the second day of fermentation. LC-MS/MS combined with other characteristics of anthocyanins suggested that the purple pigment contained anthocyanins. A total of 28 transcripts related to the anthocyanin biosynthesis pathway was identified in A. sydowii H-1, and almost all of the identified genes displayed high correlations with the metabolome. Among them, the chalcone synthase gene (CHS) and cinnamate-4hydroxylase gene (C4H) were only found using the de novo assembly method. Interestingly, the best hits of these two genes belonged to plant species. Finally, we also identified 530 lncRNAs in our datasets, and among them, three lncRNAs targeted the genes related to anthocyanin biosynthesis via cis-regulation, which provided clues for understanding the underlying mechanism of anthocyanin production in fungi. Conclusion: We first reported that anthocyanin can be produced in fungus, A. sydowii H-1. Totally, 31 candidate transcripts were identified involved in anthocyanin biosynthesis, in which CHS and C4H, known as the key genes in anthocyanin biosynthesis, were only found in strain H1, which indicated that these two genes may contribute to anthocyanins producing in H-1. This discovery expanded our knowledges of the biosynthesis of anthocyanins and provided a direction for the production of anthocyanin.