Flagellin is the subunit protein which polymerizes to form the filaments of bacterial flagella. Although swimmer cells have only a few flagella, the elongated swarmer cells are profusely covered by thousands of new flagella synthesized specifically in response to growth on surfaces or in highly viscous liquids. Belongs to the bacterial flagellin family.