A bone anchoring element comprises a tubular implant to be inserted into bone tissue for anchoring a prosthetic component located outside the bone. The implant has a compact, impermeable side wall (2) and is open at one end while the other end is closed by a compact impermeable end wall portion with attachment for prosthetic component on the outside thereof.