The Magdeburg hemispheres are held together by the weight of the atmosphere pressing inward. That is ultimately about gravity.