There are three bones that make up the knee joint: the femur (thigh bone), the tibia (shin bone), and the patella (kneecap). The kneecap is located in a groove which is known as the trochlea. When there is movement in the knee, i.e., when the knee bends or straightens, the kneecap moves in the groove. But sometimes, it moves out of its groove, which happens due to an injury. Thus, it gets free from the rest of the knee, causing dislocation.