Hashimoto thyroiditis is caused by your immune system attacking your thyroid gland by mistake. Normally, the immune system protects you from infections, but in this case, it turns against your own body and damages the thyroid, making it hard for the gland to produce enough hormones.