The semilunar valves stop the back flow of blood into the heart. There is a semilunar valve where the aorta leaves the left ventricle and another where the pulmonary artery leaves the right ventricle.