He was then ordered by the Shah to Tehran in January 1847; after spending several months in a camp outside Tehran, the Prime Minister sent the Báb to Tabriz in the northwestern corner of the country, where he was confined.