Bending a joint, such as a hip or knee joint, in a motion that decreases the angle between the two parts. The opposite is extension, which increases the angle. For joints that move both forward and backward, flexion describes the forward (i.e. anterior) motion.