 The idea being to capture hopefully a major northern city, their objective being Harrisburg, capital of a large federal state, and so embarrass the Lincoln government that, A, President Lincoln would not be reelected, potentially the British and French might recognize the Confederacy, and they might bring this war to a close.