The North overcame a series of incompetent and timid generals with superior numbers, railroads and industrial base. They finally found a semi competent general who understood his advantages and was not afraid to fight. End of story.
It was a little more complicated than that, as wives and children in New York City weren't being raped by the opposition.