Hydroxyzine is not intended to be a long-term sleep solution. It is sometimes prescribed off-label as a short-term or occasional aid for insomnia or sleep-related problems. Taking hydroxyzine every night for sleep, long-term, may decrease its effectiveness.