NPHP4 mutations cause nephronophthisis, an autosomal recessive cystic kidney disease associated with renal fibrosis and kidney failure. The NPHP4 gene product nephrocystin-4 interacts with other nephrocystins, cytoskeletal and ciliary proteins; however, the molecular and cellular functions of nephrocystin-4 have remained elusive. Here we demonstrate that nephrocystin-4 is required for normal cloaca formation during zebrafish embryogenesis. Time-lapse imaging of the developing zebrafish pronephros revealed that tubular epithelial cells at the distal pronephros actively migrate between the yolk sac extension and the blood island towards the ventral fin fold to join the proctodeum and to form the cloaca. Nphp4-deficient pronephric duct cells failed to connect with their ectodermal counterparts, and instead formed a vesicle at the obstructed end of the pronephric duct. Nephrocystin-4 interacts with nephrocystin-1 and Par6. Depletion of zebrafish NPHP1 (nphp1) increased the incidence of cyst formation and randomization of the normal body axis, but did not augment cloaca malformation in nphp4-deficient zebrafish embryos. However, simultaneous depletion of zebrafish Par6 (pard6) aggravated cloaca formation defects in nphp4-depleted embryos, suggesting that nphp4 orchestrates directed cell migration and cloaca formation through interaction with the Par protein complex.