The yellow catfish (Pelteobagrus fulvidraco) is an economic fish with a large breeding scale, and diseases have led to huge economic losses. Tumor necrosis factor receptor-associated factors (TRAFs) are a class of intracellular signal transduction proteins that play an important role in innate and adaptive immune responses by mediating NF-κB, JNK and MAPK signaling pathways. However, there are few studies on the TRAF gene family in yellow catfish. In this study, the open reading frame (ORF) sequences of TRAF1, TRAF2a, TRAF2b, TRAF3, TRAF4a, TRAF4b, TRAF5, TRAF6 and TRAF7 genes were cloned and identified in yellow catfish. The ORF sequences of the nine TRAF genes of yellow catfish (Pf_TRAF1-7) were 1413–2025 bp in length and encoded 470–674 amino acids. The predicted protein structures ofPf_TRAFs have typically conserved domains compared to mammals. The phylogenetic relationships showed that TRAF genes are conserved during evolution. Gene structure, motifs and syntenic analyses of TRAF genes showed that the exon–intron structure and conserved motifs of TRAF genes are diverse among seven vertebrate species, and the TRAF gene family is relatively conserved evolutionarily. Among them, TRAF1 is more closely related to TRAF2a and TRAF2b, and they may have evolved from a common ancestor. TRAF7 is quite different and distantly related to other TRAFs. Real-time quantitative PCR (qRT-PCR) results showed that all ninePf_TRAF genes were constitutively expressed in 12 tissues of healthy yellow catfish, with higher mRNA expression levels in the gonad, spleen, brain and gill. After infection withEdwardsiella ictaluri, the expression levels of ninePf_TRAF mRNAs were significantly changed in the head kidney, spleen, gill and brain tissues of yellow catfish, of which four genes were down-regulated and one gene was up-regulated in the head kidney; four genes were up-regulated and four genes were down-regulated in the spleen; two genes were down-regulated, one gene was up-regulated, and one gene was up-regulated and then down-regulated in the gill; one gene was up-regulated, one gene was down-regulated, and four genes were down-regulated and then up-regulated in the brain. These results indicate thatPf_TRAF genes might be involved in the immune response against bacterial infection. Subcellular localization results showed that all ninePf_TRAFs were found localized in the cytoplasm, andPf_TRAF2a,Pf_TRAF3 andPf_TRAF4a could also be localized in the nucleus, uncovering that the subcellular localization of TRAF protein may be closely related to its structure and function in cellular mechanism. The results of this study suggest that thePf_TRAF gene family plays important roles in the immune response against pathogen invasion and will provide basic information to further understand the roles of TRAF gene against bacterial infection in yellow catfish.