Spotting during pregnancy can be caused by a variety of factors, including implantation bleeding, hormonal changes, sexual intercourse, infection, or in some cases, more serious conditions such as ectopic pregnancy or miscarriage.