Cartesian diver


noun

a glass vessel partially filled with water and covered with an airtight membrane, containing a hollow object that is open at the bottom and contains just enough air to allow it to float. Pressing on the membrane compresses the air in the vessel and forces water into the object, causing it to sink; releasing the membrane causes it to rise.
Also called Cartesian devil, bottle imp.