A powerful azomethine ylide route mediated by TiO2 photocatalysis for the preparation of polysubstituted imidazolidines.