Overall, these findings suggest XBP1 and IL17A play an important role in vitiligo and further substantiate the involvement of ER stress in exacerbating immune-mediated vitiligo pathogenesis. Here, XBP1 is linked to vitiligo.