The beginning of ventricular systole is marked by the first heart sound, corresponding to the closing of the atrioventricular (AV) valves, and the beginning of ventricular diastole is marked by the second heart sound, corresponding to the closing of the semilunar valves.