What made the Mormons decide to make the Mormon trail?

After the government of Illinois ordered the Mormons to leave in 1846, Brigham Young decided to lead the Church membership to the west because Joseph Smith had prophesied years earlier that the Church would finally find a home in the Rocky Mountains. The combination of being ordered to leave Illinois and Joseph Smith's prophesy lead them to create the trail.