Anaplastic thyroid carcinoma (ATC) and poorly differentiated thyroid carcinoma (PDTC) have limited treatment options, and immune profiling may help select patients for immunotherapy. The prevalence and relevance of programmed death-1 ligand (PD-L1) expression and the presence of immune cells in ATC and PDTC has not yet been well established. The present study investigated PD-L1 expression (clone 22C3) and cells in the tumor microenvironment (TME), including tumor-infiltrating lymphocytes (TILs), tumor-associated macrophages (TAMs) and dendritic cells, in whole tissue sections of 15 cases of ATC and 13 cases of PDTC. Immunohistochemical PD-L1 expression using a tumor proportion score (TPS) with a 1% cut-off was detected in 9/15 (60%) of ATC cases and 1/13 (7.7%) of PDTC cases (P=0.006). PD-L1 expression in TILs was limited to the ATC group (73.3 vs. 0% in ATC and PDTC, respectively). In the ATC group, the TPS for tumor positive PD-L1 expression revealed a non-significant trend towards worse survival, but no difference was observed when investigating PD-L1 expression in TILs and TAMs. In addition to increased PD-L1 expression, all ATC cases exhibited significantly increased CD3 + and CD8 + T cells, CD68 + and CD163 + macrophages, and S100 + dendritic cells compared with the PDTC cases. Loss of mutL homolog 1 and PMS1 homolog 2 expression was observed in one ATC case with the highest PD-L1 expression, as well as in the only PDTC case positive for PD-L1. Notably, the latter was the only PDTC case exhibiting positivity for p53 and a cellular microenvironment similar to ATC. The current results indicated that PD-L1 expression was frequent in ATC, but rare in PDTC. In addition to PD-L1, the present study suggested that microsatellite instability may serve a role in both the TME and the identification of immunotherapy candidates among patients with PDTC.