These compounds exert their effects by binding to glucocorticoid receptors in the body, influencing the expression of anti-inflammatory proteins and suppressing the immune system response. This action helps to reduce inflammation and modulate immune activity, making them effective in treating conditions where the immune system is overactive.