Coordinated cell migration is essential in many fundamental biological processes including embryonic development, organogenesis, wound healing and the immune response. During organogenesis, groups of cells are directed to specific locations within the embryo. Here we show that the zebrafish miles apart (mil) mutation specifically affects the migration of the heart precursors to the midline. We found that mutant cells transplanted into a wild-type embryo migrate normally and that wild-type cells in a mutant embryo fail to migrate, suggesting that mil may be involved in generating an environment permissive for migration. We isolated mil by positional cloning and show that it encodes a member of the lysosphingolipid G-protein-coupled receptor family. We also show that sphingosine-1-phosphate is a ligand for Mil, and that it activates several downstream signalling events that are not activated by the mutant alleles. These data reveal a new role for lysosphingolipids in regulating cell migration during vertebrate development and provide the first molecular clues into the fusion of the bilateral heart primordia during organogenesis of the heart.