The principle of working of a rocket is based on
conservation of mass
conservation of energy
conservation of charge
conservation of linear momentum and third law of motion
The hot gases acquire momentum in the backward direction & the rocket acquires an equal amount of momentum in the forward direction.