Relationship is crumbling

How do you leave a relationship that you've been in and have a child with? All he is, is a liar. Hell even sex is so hard lately. When you notice he isn't into you sexually anymore that should be it.