Could be a lot of things.

-Rotten bud
-Cut with something
-A strain you're not used too
-Not even marijuana
-etc.

It's hard to say. Ask your friend what exactly you smoked.