Locked knee occurs when a person cannot bend or straighten their knee. Causes include injury to the area and inflammation of the joint. The knees are two of the most important joints in the body.