A connecting element for connecting a blood pump or a cannula to a heart, the connecting element including a sealing element, which is designed to at least temporarily close an opening formed in the cardiac wall and to be opened via insertion of a preferably cylindrical object in the direction of an axis of the opening.