This work focuses on the synthesis of titanium nitride–carbon (TiN–carbon) composites by the thermal decomposition of a titanyl phthalocyanine (TiN(TD)) precursor into TiN. The synthesis of TiN was also performed using the sol-gel method (TiN(SG)) of an alkoxide/urea. The structure and morphology of the TiN–carbon and its precursors were characterized by XRD, FTIR, SEM, TEM, EDS, and XPS. The FTIR results confirmed the presence of the titanium phthalocyanine (TiOPC) complex, while the XRD data corroborated the decomposition of TiOPC into TiN. The resultant TiN exhibited a cubic structure with the FM3-M lattice, aligning with the crystal system of the synthesized TiN via the alkoxide route. The XPS results indicated that the particles synthesized from the thermal decomposition of TiOPC resulted in the formation of TiN–carbon composites. The TiN particles were present as clusters of small spherical particles within the carbon matrix, displaying a porous sponge-like morphology. The proposed thermal decomposition method resulted in the formation of metal nitride composites with high carbon content, which were used as anodes for Li-ion half cells. The TiN–carbon composite anode showed a good specific capacity after 100 cycles at a current density of 100 mAg−1.