Nascent proteins emerge out of ribosomes through an exit tunnel, which was assumed to be a firmly built passive path. Recent biochemical results, however, indicate that the tunnel plays an active role in sequence-specific gating of nascent chains and in responding to cellular signals. Consistently, modulation of the tunnel shape, caused by the binding of the semi-synthetic macrolide troleandomycin to the large ribosomal subunit from Deinococcus radiodurans, was revealed crystallographically. The results provide insights into the tunnel dynamics at high resolution. Here we show that, in addition to the typical steric blockage of the ribosomal tunnel by macrolides, troleandomycin induces a conformational rearrangement in a wall constituent, protein L22, flipping the tip of its highly conserved beta-hairpin across the tunnel. On the basis of mutations that alleviate elongation arrest, the tunnel motion could be correlated with sequence discrimination and gating, suggesting that specific arrest motifs within nascent chain sequences may induce a similar gating mechanism.