Feeling like divorce is coming

This pregnancy is something I've waited for for a very long time but the only thing that has happened is my husband has treated me so badly that I want to give up. I thought us finally getting pregnant would bring us closer but it has only torn us further apart. I don't understand why he treats me the way he does but I'm to the point where I feel like there is nothing else I can do besides put a plan together to leave. I really don't know what to do