Formation of a pillar[5]arene-based [3]pseudorotaxane in solution and in the solid state.