BackgroundPrimary hypothyroidism is a common endocrine disorder caused by impaired production of thyroid hormones. Recent studies have shown that dietary habits, oxidative stress, and inflammation may play roles in thyroid hypofunction. Thus, the present article aimed to determine the relationship between major dietary patterns and oxidative stress and inflammation in primary hypothyroid patients and healthy people in Iranian adults.MethodsThis matched case-control study was conducted on 200 participants (100 cases and 100 controls). The presence of primary hypothyroidism was determined by endocrinologists based on American Thyroid Association (ATA) criteria. Dietary intake was assessed using a validated 168-item, semi-quantitative food frequency questionnaire (FFQ). The principal component analysis (PCA) method was used to derive major dietary patterns. Statistical analysis was performed using logistic regression analysis, and the findings were reported using odds ratios (ORs) with 95% CIs.ResultsWe identified 2 major dietary patterns (i.e., healthy and Western dietary patterns). After adjusting for confounding variables, participants in the highest tertile of the healthy eating pattern had lower odds of primary hypothyroidism. Also, there was a significant relationship between total antioxidant capacity (TAC) levels and thyroid hypofunction; however, no significant correlation was seen between the Western dietary pattern and malondialdehyde (MDA) and C-reactive protein (CRP) with hypothyroidism.ConclusionsThere were statistically direct associations between healthy dietary patterns (loaded with vegetables, nuts and seeds, fruits, dried fruits, olives, garlic, black pepper, starchy vegetables, low-fat dairy, and legumes) and increased TAC levels with a decreased risk of thyroid hypofunction. However, Western dietary patterns and MDA and CRP levels did not associate with an underactive thyroid.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12902-023-01348-9.