A liquidation occurs when the margin of your position is no longer sufficient to cover losses.
Main causes:
Use of high leverage.
Strong market movement against your position.
Lack of Stop Loss.
Insufficient available margin.
Incorrect use of margin type (cross or isolated).
When a liquidation occurs:
The position is closed automatically.
The assigned margin is lost (totally or partially).
Good risk management considerably reduces the probability of liquidation.