Flagellin molecules self-assemble into helical chains that form the long, whip-like structure of the flagellum.