The force that causes objects to float is known as buoyancy.
It is the force applied to an object that is partially or completely submerged in a fluid.
The buoyancy principle is known as Archimedes' Principle after the Greek mathematician who discovered it in the third century.
According to the principle, "the upward buoyant force exerted on a body immersed in a fluid, whether partially or completely submerged, is equal to the weight of the fluid that the body displaces and acts in the upward direction at the centre of mass of the displaced fluid."