sentences:  On April 9, Lee surrendered to Grant at Appomattox and the war was effectively over.Following Lee's surrender, other rebel armies soon did as well, and there was no subsequent guerrilla warfare as had been feared.Throughout the first year and a half of his presidency, Lincoln made it clear that the North was fighting the war to preserve the Union and not to end slavery.