This study aimed to obtain a better understanding of the regulatory genes and molecules involved in the development of mastitis. For this purpose, the transcription factors (TF) and MicroRNAs (miRNA) related to differentially expressed genes previously found in extracorporeal udders infected with Streptococcus agalactiae were investigated. The Gene-TF network highlighted LOC515333, SAA3, CD14, NFKBIA, APOC2 and LOC100335608 and genes that encode the most representative transcription factors STAT3, PPARG, EGR1 and NFKB1 for infected udders. In addition, it was possible to highlight, through the analysis of the gene-miRNA network, genes that could be post-transcriptionally regulated by miRNAs, such as the relationship between the CCL5 gene and the miRNA bta-miR-363. Overall, our data demonstrated genes and regulatory elements (TF and miRNA) that can play an important role in mastitis resistance. The results provide new insights into the first functional pathways and the network of genes that orchestrate the innate immune responses to infection by Streptococcus agalactiae. Our results will increase the general knowledge about the gene networks, transcription factors and miRNAs involved in fighting intramammary infection and maintaining tissue during infection and thus enable a better understanding of the pathophysiology of mastitis.