The primary mechanism that leads to development of an urticarial rash is the release of histamine (a chemical) by the human immune system into the blood. In response to histamine, blood plasma leaks out of small blood vessels in the skin resulting in swelling.
A large number of things can trigger the onset of Urticaria and some of them have been discussed here: