The papillary muscles within the ventricles,attach to the cusps of the atrioventricular valves via the tendinous chords. They prevent the prolapse of the mitral and tricuspidal valves during ventricular systole (to prevent regurgitation of the blood to the left/right atrium.