Hydroxyzine is used to help control anxiety and tension caused by nervous and emotional conditions. It can also be used to help control anxiety and produce sleep before surgery.
https://www.mayoclinic.org/drugs-supplements/hydroxyzine-oral-route/description/drg-20311434