A new C-C bond forming annulation reaction leading to pH switchable heterocycles.