The structural change and superconductivity in MgCxNi3 (x=0.5–1.55) and MgxCyNi3 (x=0.75–1.55, y=0.85, 1.0 and 1.45) and the phase diagram of Ni-rich region in Mg–C–Ni ternary system