The atrioventricular (AV) valves prevent backflow of blood into the atria during ventricular contraction.