A “natural history of the imaginary” allows understanding how the imagination has become a resource. It was discovered at the start of the 19 th century, then it has developed. Today the imaginary is everywhere in the city which is an artified city. Many professionals are in charge of it: artists, architects, advertisers, urban scenographers... The “natural history of the imaginary” shows that there is a “domesticated imaginary” and also a “spontaneous imaginary”. The “spontaneous imaginary” appears when there are “urban trances” (Music Day ...). They pose problems of urban governance. The example of the night of the 15 th of July in Paris (after the victory of the French soccer team in the World Cup) is dealt with. One explains why this event caused no trouble thanks to the tools from the sociology of the actor-network (translation, actants). One can use the notion of cognitive dissonance, also. This question is dealt with: could the imaginary be coded? The answer seems to be no.