A new class of organic dyes based on triazatruxene have been designed and synthesized for dye-sensitized solar cells. The photoelectronic properties of these donor-π-acceptor dyes can be tuned by changing π-conjugated linkers. The best performance was found for triazatruxene dye TD1, wherein, with thiophene as the conjugated linker and cyanoacrylic acid as the acceptor, a power conversion efficiency up to 6.10% was achieved.