An NHC‐mediated synthesis of pyrrolo[2,1‐a]isoquinoline and indolizinederivatives with potential biological activity is reported (NHC=N‐heterocyclic carbene). The preliminary photophysical studies of such compounds reveal that they have potential application in the sensing of volatile organic compounds (VOCs).