Autotransporter passenger domains are presented on or released from the bacterial surface upon translocation through an outer membrane β-barrel anchor. Here the authors study the two E. coli autotransporters Pet and EspP and propose that the β-barrel anchor acts as a vector to nucleate the folding of the passenger domain.