π-Conjugated microporous polyHIPEs are synthesized via Suzuki cross-coupling. The polymeric backbone consists of electron donor and acceptor moieties with suitable energetic characteristics to promote the efficient photosensitizing ability for the activation of singlet oxygen, showing extraordinarily high stability. The reaction can be carried out in a continuous flow reaction set-up, realizing complete conversion of α-terpinene into ascaridole.