Photolysis of aryl azides typically involves multiple reaction pathways. This study designed and synthesized an aryl azide rotamer with two conformations. In aqueous media, its photolysis yields two main products. However, when stabilized in one conformation within the cucurbit[8]uril (CB8) host, the photoreaction selectively produces a single product.