The sap of rue, fig, celery, parsnip or spurges, the hairs of nettles or processionary caterpillars and some essential oils can cause it, sometimes only if the skin is later exposed to sunlight.
That is why these plants should be pruned and handled with gloves and long sleeves, washing with soap and water afterwards and keeping hands away from the eyes.

