A medical device for implantation in a hip joint of a patient is provided. The medical device is adapted to be fixated to the pelvic bone of the patient. The medical device comprises an inner and an outer surface, wherein a contacting portion, of said inner surface is spherical and adapted to face the center of the hip joint when said medical device is implanted. The medical device is adapted to receive a caput femur or a prosthetic replacement therefor having a spherical portion, wherein said medical device comprises at least one extending portion, extending said contacting portion of said inner surface such that said at least one extending portion clasps said spherical portion of said caput femur, or a prosthetic replacement therefor, such that said spherical portion is restrained in said medical device. Restraining the caput femur in the medical device reduces the risk that the hip joint dislocates when in use by the patient.