For two things. First of all, divergence is a signal about the possible end of a movement. If you have an open position you can take profits. The second is when you are looking for an opportunity to open a position. Then when a divergence occurs you open the position after signal to entry.