Phase compositions and thermal stability of different TaCx layers deposited by PVD is studied using in-situ high-temperature XRD (HT-XRD). It is found that the phase composition of the as-dep. layers and those during annealing at high temperatures strongly depends on their chemical compositions. Low carbon layers (~Ta4C) are amorphous below 700degC, and crystallize into hexagonal Ta2C in 700-900degC. At 1150degC, the Ta2C is replaced by TaSi2. Stoichiometric Ta2C are also dominantly amorphous below 900degC and starts to form cubic TaC at 900degC, and TaSi2 at 1100degC. The as-dep. TaC layers are crystalline, with a dominant cubic TaC phase. At 1000degC, the TaC is replaced by TaSi2