Pericardiocentesis involves the use of a needle to withdraw fluid from the pericardial sac, which is the membrane that surrounds the heart. The procedure is performed to remove fluid that is compressing the heart, or the fluid may be evaluated for diagnostic purposes.