Why was Salt Lake City started?

Salt Lake City and the surrounding communities were started by Mormon pioneers who were seeking refuge and a place where they could settle and practice their religion in peace.