What is hydroxyzine prescribed for?

Usually itching. It is a first generation antihistamine so sedation is common, but it works well for allergy symptoms, itching, and hives.
Anxiety and Suicidal. In psychiatry it is used for anxiety and to decrease the urge to attempt self-harm or suicide.