How does Iran keep its cities clean despite being a poor country?

I don't know where you are getting the word poor from. I call Iran neither poor nor rich, but a middle-class country. based on Global Finance Magazine Iran is the 70th richest country among 189 countries and it's richer than Azerbaijan, China, Brazil, Thailand, Iraq, and Egypt. also the cleanliness of a country doesn't only depend on money but on many factors including efficiency of the responsible organ, culture, and population as well.

image