How did the Mormons get to Utah?

Originally, by walking there, mostly from their homes in Nauvoo, Illinois, via the Mormon Trail. Some came with wagons, some with handcarts. After the transcontinental railway opened, most travelled by train.

See related links for stories about and history of the Mormon Trail.