Process wherein a product containing a binary compound of carbon and metal or silicon (e.g., metal carbide, silicon carbide, etc.) or tertiary compound of carbon, nitrogen, and metal or silicon (e.g., metal carbonitride, silicon carbonitride, iron nitrocarbide, etc.) is produced.