Buoyancy and Archimedes' principle
A fluid pushes up on an immersed object with a force equal to the weight of the fluid it displaces, $F_b = \rho_{fluid} V g$, because the pressure on its bottom is greater than on its top, so an object floats when it is less dense than the fluid.
From Physics 1.