The first heart sound (S1, "lub") is caused by the closure of the mitral and tricuspid (atrioventricular) valves at the onset of ventricular systole. The second heart sound (S2, "dub") results from the closure of the aortic and pulmonary (semilunar) valves at the end of ventricular systole.