The Wei River largely forms a southern side of the imperfect rectangle formed by these curves of the Yellow River, flowing about 560 kilometers through the Loess Plateau from a source not far from its southwestern corner to a confluence at the southeastern corner.