What do I do

I’ve been in a relationship for 2 years now and I don’t know if I can handle it anymore, it all started out good but now it just really isn’t he comes from a bad background his dad disappeared and was abusive towards his mother and his mother lost custody of him at 2. Now I’m starting to realise he is actually like his mother and father... these were the messages from the other day and he’s always calling me fat and ugly yet sits there saying I’m nasty and makes me feel awful about myself. My depression began to come back I tried to talk to him about it and the response he gave me was how could you be so selfish, you don’t even care about me do you after I told him how I felt. It’s a toxic relationship but I have no idea how to get out of it