Hydrodynamic forces play a central role in organ morphogenesis. The role of blood flow in shaping the developing heart is well established, but the role of fluid forces generated in the pericardial cavity surrounding the heart is unknown. Mesothelial cells lining the pericardium generate the proepicardium (PE), the precursor cell population of the epicardium, the outer layer covering the myocardium, which is essential for its maturation and the formation of the heart valves and coronary vasculature. However, there is no evidence from in vivo studies showing how epicardial precursor cells reach and attach to the heart. Using optical tools for real-time analysis in the zebrafish, including high-speed imaging and optical tweezing, we show that the heartbeat generates pericardiac fluid advections that drive epicardium formation. These flow forces trigger PE formation and epicardial progenitor cell release and motion. The pericardial flow also influences the site of PE cell adhesion to the myocardium. We additionally identify novel mesothelial sources of epicardial precursors and show that precursor release and adhesion occur both through pericardiac fluid advections and through direct contact with the myocardium. Two hydrodynamic forces couple cardiac development and function: first, blood flow inside the heart, and second, the pericardial fluid advections outside the heart identified here. This pericardiac fluid flow is essential for epicardium formation and represents the first example of hydrodynamic flow forces controlling organogenesis through an action on mesothelial cells.