Spotting before period

I have been spotting for about a week before my period. What is causing this?