[reaction: see text] Water- and methanol-swollen Nafion membranes were used as microreactors to successfully control the photochemical reaction pathway of stilbazole derivatives. Of particular interest is the production of azaphenanthrene (the product not obtainable in homogeneous solution) in high yield under high bulk concentration.