The 1864 United States presidential election in Maryland took place on November 8, 1864, as part of the 1864 United States presidential election. Maryland voters chose seven representatives, or electors, to the Electoral College, who voted for president and vice president. This was the last time that a Republican would win Maryland in a presidential election until William McKinley won it in 1896.