The Grand bazaar of Tehran is ten kilometers long, while the one in Istanbul, dating from the 15th century, has more than 58 streets and 4000 shops. Historically, as in modern times, the bazaar was a source of tax revenue for the government. In return, the government provided the bazaars with a system of internal security and justice.