<P> Hannibal Hamlin (August 27, 1809--July 4, 1891) was an American attorney and politician from the state of Maine . In a public service career that spanned over 50 years, he is most notable for having served as the 15th Vice President of the United States . The first Republican to hold the office, Hamlin served from 1861 to 1865 . He is considered among the most influential politicians to have come from Maine . </P> <P> A native of Paris, Maine, Hamlin managed his father's farm before becoming a newspaper editor . He studied law, was admitted to the bar in 1833, and began to practice in Hampden, Maine . Originally a Democrat, Hamlin began his political career with election to the Maine House of Representatives in 1835 and an appointment to the military staff of the Governor of Maine . As an officer in the militia, he took part in the 1839 negotiations that helped end the Aroostook War . In the 1840s Hamlin was elected and served in the United States House of Representatives . In 1848 the state house elected him to the United States Senate, where he served until January 1857 . He served temporarily as governor for six weeks in the beginning of 1857, after which he returned to the Senate . Hamlin was an active opponent of slavery; he supported the Wilmot Proviso and opposed the Compromise Measures of 1850 . In 1854, he strongly opposed passage of the Kansas--Nebraska Act . Hamlin's increasingly anti-slavery views caused him to leave the Democratic Party for the newly formed Republican Party in 1856 . </P> <P> In 1860, Hamlin was the Republican nominee for Vice President; selected to run with Abraham Lincoln, who was from Illinois, Hamlin was chosen in part to bring geographic balance to the ticket and in part because as a former Democrat, he could work to convince other anti-slavery Democrats that their future lay with the Republican Party . The Lincoln and Hamlin ticket was successful, and Hamlin served as Vice President from 1861 to 1865, which included the majority of the American Civil War . The first Republican Vice President, Hamlin held the office in an era when the office was considered more a part of the legislative branch than the executive; he was not personally close to Lincoln and did not play a major role in his administration . Even so, Hamlin supported the administration's legislative program in his role as presiding officer of the Senate, and he looked for other ways to demonstrate his support for the Union, including a term of service in a Maine militia unit during the war . </P> <P> For the 1864 election, Hamlin was replaced as Vice Presidential nominee by Andrew Johnson, a Southern Democrat chosen for his appeal to Southern Unionists . After leaving the vice presidency, Hamlin served as Collector of the Port of Boston, a lucrative post to which he was appointed by Johnson after the latter succeeded to the presidency following Lincoln's assassination . However, Hamlin later resigned as Collector because of his disagreement with Johnson over Reconstruction of the former Confederacy . </P>

Who was the vice president of the united states during the civil war
find me the text answering this question