Elected while Grant was in the military, Lincoln came to depend on Grant's insight into military matters and trusted Grant. Lincoln pledged the full support of the government and thanked Grant for the endeavors of the Union Army. Lincoln visited with Grant several times over the course of the war.