Tissue folding promotes three-dimensional (3D) form during development. In many cases, folding is associated with myosin accumulation at the apical surface of epithelial cells, as seen in the vertebrate neural tube and the Drosophila ventral furrow. This type of folding is characterized by constriction of apical cell surfaces, and the resulting cell shape change is thought to cause tissue folding. Here, we use quantitative microscopy to measure the pattern of transcription, signaling, myosin activation and cell shape in the Drosophila mesoderm. We found that cells within the ventral domain accumulate different amounts of active apical non-muscle myosin 2 depending on the distance from the ventral midline. This gradient in active myosin depends on a newly quantified gradient in upstream signaling proteins. A 3D continuum model of the embryo with induced contractility demonstrates that contractility gradients, but not contractility per se, promote changes to surface curvature and folding. As predicted by the model, experimental broadening of the myosin domain in vivo disrupts tissue curvature where myosin is uniform. Our data argue that apical contractility gradients are important for tissue folding.