The type III secretion injectisome is a nanomachine that delivers bacterial proteins into the cytosol of eukaryotic target cells. It consists of a cylindrical basal structure spanning the two bacterial membranes and the peptidoglycan, connected to a hollow needle, eventually followed by a filament (animal pathogens) or to a long pilus (plant pathogens). Export employs a type III pathway. During assembly, all the protein subunits of external elements are sequentially exported by the basal structure itself, implying that the export apparatus can switch its substrate specificity over time. The length of the needle is controlled by a protein that it also secreted during assembly and presumably acts as a molecular ruler.