Both UC and UC
2 are formed by adding carbon to molten uranium or by exposing the metal to carbon monoxide at high temperatures.