Process for the synthesis of precursor complexes of titanium dioxide sensitization dyes based on ruthenium polypyridine complexes