How It Works. Dexamethasone is a corticosteroid known as a glucocorticoid. Corticosteroids are meant to resemble a naturally occurring hormone produced in the adrenal cortex, cortisol. Corticosteroids act on the immune system by blocking the production of substances that trigger inflammatory and immune responses.