Mesangial cells play multiple roles within the glomerulus. They provide structural support to the capillaries, secrete extracellular matrix, and have phagocytic functions that help clear debris. Additionally, mesangial cells are involved in the regulation of blood flow through the glomerulus by contracting and relaxing in response to various stimuli.