Rockets work on the principle of conservation of:
Momentum
Law of conservation of momentum states that for an isolated system the linear momentum of the system is always conserved. Rockets also work on this law. The momentum of fuel ejected is transferred as the momentum of rocket flying.