In the early of 18th century , Karim Khan Zand , ordered a palace , and a government office to be built in Tehran . But , later , moved his government Capital to Shiraz . In the early of 18th century , Karim Khan Zand ordered a palace , and a government office to be built in Tehran , possibly to declare the city his capital , but later moved his government to Shiraz .