The halogen bonding and the pi...pi stacking interactions induce the noncovalent self-assembly of modules into photoreactive supramolecular architecture. The pi...pi interaction pre-organizes the template, and the halogen bonding aligns the olefins to conform to the topochemical principle for photoreaction. The UV irradiation of the crystal resulted in a cyclization product with quantitative yield and stereospecificity.