Sertraline is recommended to be taken in the morning and try not to take it at night. 1. If you still have insomnia after taking it in the morning, you can switch to similar SSR drugs for treatment. Replace sertraline with other drugs such as escitalopram, citalopram, or switch to SNRI drugs such as venlafaxine hydrochloride, duloxetine hydrochloride, etc. 2. If after adjusting these drugs still cause insomnia, or if insomnia occurs when taking sertraline in the morning, a small dose of trazodone can be used in combination at night, the combination of drugs can solve the problem of insomnia at night when taking sertraline. is desirable.