Doxylamine promotes relaxation to ease you into sleep, but it should not be used as a regular anxiety medication. If you are experiencing anxiety, your healthcare provider can recommend an anxiety medication that is more suitable for you.