Divergence occurs when technical analysis indicators or trading volumes fail to confirm price movement, thus deviating from it. For instance, during an uptrend, prices may rise while indicators form lower highs, which is known as negative divergence. Conversely, during a downtrend, prices may fall to lower lows while indicators form higher lows, which is termed positive divergence.