Barium carbonate , the other ore of barium , is dissolved in hydrochloric acid to make barium chloride and carbon dioxide . Because barite is so insoluble , it can not be used directly for the preparation of other barium compounds , or barium metal . Instead , the ore is heated with carbon to reduce it to barium sulfide :