The diagnosis of thyroiditis relies on the histological examination of thyroid tissue obtained via fine-needle aspiration biopsy or surgical excision. Pathologists look for specific patterns of inflammation, cellular changes, and the presence of fibrosis or granulomas to differentiate between the various types of thyroiditis. Immunohistochemical staining can also be used to identify specific cell types and markers that aid in diagnosis.