The formation of the placenta begins shortly after fertilization when the fertilized egg implants into the uterine wall. Trophoblast cells from the blastocyst invade the endometrium, leading to the development of the chorionic villi, which form the basis of the placenta.