Direct exposure of human skin to sunlight leads to suppression of the immune system, believed to be mediated by urocanic acid. The synthesis of oxazole and thiazole analogues of urocanic acid is reported, as is their effect on biological markers of the human immune system.