Complex sentence: As a child he was both happy and lonely, and he both loved his mother and resented her for being absent from his life.
Split into simpler sentences: As a child he was both happy and lonely. He both loved his mother and resented her for being absent from his life.