Any body submerged in a liquid is affected by a vertical force in an upwards direction equal to the weight of the fluid displaced by its submerged part.
The statement above is known as Archimedes's principle.