Spotting?

What causes spotting? I think that’s what I have. I have my period almost two weeks ago and I woke up to blood. Why??