The placenta develops from the chorion frondosum on the fetal side and the decidua basalis on the maternal side. During implantation, the trophoblast invades the endometrium and forms the decidua. Primary chorionic villi then develop from the trophoblast and invade the decidua basalis. Secondary villi develop when mesoderm invades the primary villi. Tertiary villi form when blood vessels develop in the mesoderm. By the end of the fourth week, the placenta has formed and a complex vascular network facilitates nutrient and gas exchange between the mother and fetus. The placenta continues to develop throughout pregnancy.