What makes a guy hate you yet be possessive of you?

I have known a guy. he hates me which is okay but then act a bunch lot of possessive and hurt we hen he came to know of my boyfriend.

What makes a guy hate you yet be possessive of you?
Post Opinion