hCG is produced by the placenta during pregnancy and helps maintain the corpus luteum and influence steroid production. In nonpregnant individuals, it can also be produced by trophoblastic tumors or germ cell tumors. Measuring hCG levels allows for the early detection of pregnancy, as early as one week after conception.