When the valves are open, the papillary muscles are relaxed.

When the valves close the papillary muscles contract and tense the chordae tendinae which pull on the valve cusps and prevent them from being everted into the atria.