He cheated.

So I just found out my boyfriend of 2 years has cheated on me with another girl. I'm really shocked because honestly I feel like he really does love me because of the way he always treated me. And I get that you don't cheat on someone you really love but I'm honestly crazy about him. It hurts so much because 2 years is a long time. I can't figure out if I did something wrong? I haven't confronted him about his cheating yet either. So can someone tell me what I should do please?