What wars did Ulysses S. Grant fight in?

The Civil War and he was a staff officer in the Mexican American War.