Magnesium hydroxide is used as an ingredient in deodorants. The main reason for its use is its ability to kill odor-causing bacteria on the skin while causing no damage to the dermis. The dermis is the outermost layer of the skin comprising sweat glands, hair follicles, and pores.