Iron carbides in association with native iron, graphite, and magnetite were identified in a diamond from the Juina area, Brazil, which contains a series of other, lower-mantle mineral inclusions. Among iron carbides, Fe 3 C, Fe 2 C ("chalypite"), and Fe 23 C 6 (haxonite) are present; the two latter are identified in the terrestrial environment for the first time. Some of the analyzed iron carbide grains contain 7.3-9.1 at.% N and are, in fact, nitrocarbide. It is suggested, based on the high-pressure mineral paragenesis previously observed in the diamond and experimental data on the system Fe-C, that "chalypite" crystallized, within a pressure interval of 50-130 GPa, from an iron-carbon melt, rich in nitrogen. Following crystallization, iron carbides and native iron were partially oxidised to magnetite, and encapsulated in diamond along with other highpressure minerals. The finds of various iron carbides, some of which are rich in nitrogen, in lower-mantle diamond confirm a significant role of carbides and nitrogen in the Earth's interior.