The papillary muscles are specialised muscles located in the ventricles of the heart. They attach to the cusps of the atrioventricular valves (also known as the mitral and tricuspid valves) via the chordae tendineae or heart strings (The white cords in the given photo) and contract to prevent inversion or prolapse of these valves during systole or ventricular contraction.