During a genetic screen to identify metalloregulated loci in Bacillus subtilis, we isolated a Tn917-lacZ insertion in the second gene of an operon downstream of the flagellin (hag) gene. Sequence analysis indicates that this gene encodes a homolog of the enteric flagellar filament cap protein FliD. The fliD gene is followed by homologs of the fliS and fliT genes. Transcription of the fliD-lacZ fusion is sigma D dependent, with peak expression at the end of logarithmic-phase growth. Like other sigma D-dependent genes, expression of fliD-lacZ is greatly reduced by mutations in genes essential for assembly and function of the basal body and hook complex (class II functions). These results suggest that B. subtilis flagellar genes are organized in a hierarchy of gene expression similar to that found in enteric bacteria with hag and fliD as class III genes. Expression from the fliD operon promoter, but not the hag promoter, is repressed by iron, which suggests that the target of metalloregulation is the promoter rather than the sigma D protein.