The heat shock transcription factor (HSF) family is one of the most widely studied transcription factor families in plants;
HSFs
can participate in the response to various stressors, such as heat stress, high salt, and drought stress. Based on garlic transcriptome data, we screened and identified 22 garlic
HSF
s. The HSF proteins of garlic and
Arabidopsis
can be divided into three (A, B, C) subfamilies. The phylogenetic relationship, chromosome localization, sequence characteristics, conserved motifs, and promoter analysis of the HSF family were analyzed through bioinformatics methods. RT-qPCR analysis showed that the nine selected genes had different degrees of response to heat stress. In addition, we isolated and identified a class B
HSF
gene,
AsHSFB1
, from garlic variety ‘Xusuan No.6’. Subsequently, the
AsHSFB1
gene was overexpressed in
Arabidopsis thaliana
. Under heat stress, the germination rate and growth of wild-type plants were better than that of transgenic plants. Moreover, after heat treatment, the contents of peroxidase, catalase, and chlorophyll a and b of transgenic plants were lower, but the contents of malondialdehyde (MDA) and leaf conductivity were higher. Nitroblue tetrazolium (NBT) staining showed that the stained area of transgenic plant leaves was larger than that of the wild type. Further studies showed that
AsHSFB1
overexpression inhibited the expression of related reverse resistance genes. These results indicate that
AsHSFB1
might play a negative regulatory role in garlic resistance under high stress. Altogether, these findings provide valuable data for revealing the function of
HSF
genes and lay a foundation for the subsequent selection of heat-resistant garlic varieties.
Supplementary Information
The online version contains supplementary material available at 10.1186/s12864-024-11002-w.