Human Chorionic Gonadotropin (hCG) is a hormone produced during pregnancy by the placenta shortly after the embryo attaches to the uterine lining. It plays a crucial role in maintaining the early stages of pregnancy by stimulating the corpus luteum to produce progesterone, which is vital for sustaining the uterine lining and supporting fetal development. hCG is also used in medical tests to confirm pregnancy, as its levels can be detected in blood and urine.