What age did Ulysses S. Grant get married at?

Julia Boggs Dent married Ulysses Simpson Grant on August 22, 1848, when Grant was 26.