Details of the mechanisms that determine the shape and positioning of organs in the body cavity remain largely obscure. We show that stereotypic positioning of outgrowing Drosophila renal tubules depends on signaling in a subset of tubule cells and results from enhanced sensitivity to guidance signals by targeted matrix deposition. VEGF/PDGF ligands from the tubules attract hemocytes, which secrete components of the basement membrane to ensheath them. Collagen IV sensitizes tubule cells to localized BMP guidance cues. Signaling results in pathway activation in a subset of tubule cells that lead outgrowth through the body cavity. Failure of hemocyte migration, loss of collagen IV, or abrogation of BMP signaling results in tubule misrouting and defective organ shape and positioning. Such regulated interplay between cell-cell and cell-matrix interactions is likely to have wide relevance in organogenesis and congenital disease.