I don't know what it is

Yesterday I was getting brown marks on my underwear and today I noticed it was discharged but my period is not even close to coming, what does this mean? Can anyone help?