Where did the Mormons leave from when treking west?

The Mormons were receiving massive persecution, being moved from New York to Kirtland, to eventually Utah. So basically, they wanted a place to worship their religion in peace