Uranium dioxide is carbonized in contact with carbon, forming uranium carbide and carbon monoxide.
This process must be done under an inert gas as uranium carbide is easily oxidized back into uranium oxide.