Margination of stiffened red blood cells has been implicated in many vascular diseases. Here, we report the margination of stiffened RBCs in vivo, and reveal the crucial role of the vessel geometry in the margination by calculations when the blood is seen as viscoelastic fluid. The vessel-geometry-regulated margination is then confirmed by in vitro experiments in microfluidic devices, and it establishes new insights to cell sorting technology and artificial blood vessel fabrication.