A medical implant having a wall, which can be transferred from a compressed to an expanded state and includes a mesh structure formed of first struts, wherein the mesh structure has closed cells, each having a retaining element, which is adapted to anchor the expanded mesh structure in a vessel. The retaining element has at least two second struts which are connected to one another and form a tip which projects into the cell, and are connected to the first struts of the cell.