Ventricular systole is when the walls of the ventricles contract. Ventricular volume decreases so pressure increases.
The pressure in the ventricles rises above that in the atria, closing the AV valves closed, preventing backflow.
Pressure in the ventricles rises above that in the aorta and pulmonary artery, forcing the semilunar valves open, so blood leaves the heart.
During ventricular systole the atria relax, atrial diastole corresponds with ventricular systole. Blood flow to the heart continues and relaxed atria fill with blood again.