Structural and magnetic properties of the RCr 2 Si 2 C compounds ͑R = Y, La-Sm, Gd-Er͒ with the carbonfilled CeMg 2 Si 2 -type structure ͑space group P4 / mmm͒ have been studied by means of powder and singlecrystal x-ray diffractions, magnetic measurements, and neutron powder diffraction. The compounds with R = Pr, Nd, Gd-Dy order ferromagnetically at low temperature ͑T C Յ 35 K͒, whereas those with R = Y, La, Ce, and Sm do not exhibit any magnetic ordering down to 2 K. On the contrary, the "parent" ThCr 2 Si 2 -type ͑space group I4 / mmm͒ RCr 2 Si 2 compounds ͑R = Y, Sm, Tb-Lu͒ exhibit strong antiferromagnetic properties ͑T N Ͼ 600 K͒ linked to a large magnetic moment ͑ϳ1.9 B ͒ on the Cr sublattice. In order to better understand the role played by carbon on structural and magnetic properties in these systems, ab initio electronic structure calculations of RCr 2 Si 2 and RCr 2 Si 2 C compounds with R = Y and La have been performed, using the Korringa-Kohn-Rostoker ͑KKR͒ method, in the ThCr 2 Si 2 -and CeMg 2 Si 2 -types as well as their corresponding C-"filled" types, with C atoms located in Cr ͑001͒ planes. This study has allowed elucidating the particular role of carbon in the breakdown of the local magnetic moment on the Cr sublattice. KKR calculations clearly evidence that strong hybridization between d states on Cr atoms and p states on C atoms leads to a marked decrease in the density of states in the vicinity of E F ͑well below the Stoner limit͒. Since similar electronic structure modifications are observed whatever the crystal structure, we tentatively conclude that the Cr-C interactions are more predominant in the disappearance of magnetism in RCr 2 Si 2 C than the effect of the rearrangement of Si and R atomic planes when passing from the ThCr 2 Si 2 type to the CeMg 2 Si 2 -type structure. Moreover, KKR calculations with the coherent-potential approximation undertaken for the "model" RCr 2 Si 2 C x system ͑0 Յ x Յ 1͒ well illustrate the evolution of the electronic structure and magnetic properties upon increasing carbon concentration.