The middle rectal artery is a branch of the internal iliac artery that supplies blood to the rectum and anastomoses with the superior and inferior rectal arteries. It plays a crucial role in the vascular network of the pelvis, supporting the rectal and lower pelvic structures.