Cities are hardened to death and disease. six per cent of chicagos inhabitants died in the cholera pandemic of 1854; an outbreak in hamburg in 1892 killed 8,600; the great plague claimed the lives of 100,000 londoners almost a quarter of the population in 1665-66.

The metropolis was traditionally dingy. the gleaming hubs of modern cities, now emptied by covid-19 lockdowns and the fear of infection, are historical anomalies. the river is almost black, and is covered with black barges; above the black housetops...rises a dusky wilderness of masts, henry james wrote of greenwich in south-east london in 1887.

Those who evaded bacteria and viruses had to take their chance on the streets london knife crime is not new: it accounted for 56 per cent of murders in the medieval city. then there were fires, including the 14 that burnt most of wooden-built oslo by 1624, and bombs, which destroyed two-thirds of coventrys city centre in 1940.

Yet for centuries, it has been hard to stop country-dwellers leaving their bucolic calm and rushing to become citizens. the equivalent of eight cities the size of new york were being formed annually around the world before covid emerged. wuhan, the virus-originating city, which many would not have heard before the pandemic, is home to 11m.

Are we now witnessing a reversal of the centripetal momentum that has drawn people and businesses into urban clusters? clustering has become a high-risk activity since the outbreak of covid-19, and zooming from home has replaced commuting for many, if not the workers who must keep public services going. city dwellers browse listings covetously for country cottages.

Books take so long to research and write that the peril of being overtaken by events always hovers. it has swooped on this collection on the triumph of urbanism. in metropolis, a history of humankinds greatest invention, ben wilson notes that early-20th-century cities were places of pessimism not hope, and we have received a sharp reminder that the metropolis is vulnerable.

To stand in a stairwell on the 27th floor of a tower block, next to a communal garbage chute, beneath a fluorescent light, and look out through thick glass at the skyline of a british city is to be reminded of the suddenness and completeness of historical change, writes sam wetherell, a university of york professor with a soft spot for postwar urban planning, in foundations.

These works chart the citys rise from different perspectives wilsons global historical; wetherells academic modernist; ged popes literary suburban; and mark ovendens graphical statistical. their collective moral is that cities are innovative and sturdy. they can be bombed, infected and pummelled into retreat over centuries, yet they shift shape and survive.

Urban growth has been so rapid in developing economies that many prefer to live in slums and shanty towns rather than stay in the village 55 per cent of mumbais population is estimated to live in informal settlements. cities have expanded across regions, spawning suburbs, edge cities and exurbs; phoenix sprawls on the arizona desert.

Infrastructure is needed when cramming millions together. in underground cities, a fascinating dive into the monuments beneath our feet, ovenden records extraordinary subterranean feats in many cities, from the moscow subway to helsinkis 400 cold war underground shelters. much of chicago had to be physically lifted in 1858, block by city block, to make room for sewers.

The cities beneath our feet. graphic showing different depths of infrastructre beneath 10 major cities, depth below ground (metres) by type of construction

Master planning is not a 20th-century innovation witness haussmanns remodelling of paris under napoleon iii (cruel demolisher, what have you done with my past? i search in vain for paris, wrote the poet charles valette) and dinocrates ancient alexandria. imperial rome was carefully ordered lewis mumford recorded its six obelisks, eight bridges and 11 public baths in the city in history (1961).

Donald gibson, the official who rebuilt coventry after its warren of streets was flattened in 1940, watched the nazi intervention with mixed emotions, hoping that like a forest fire the present evil might bring forth greater riches and beauty. but the visions of planners such as gibson and robert moses of new york, read oddly now that we know the concrete reality of expressways and housing projects.

The power of the city has often arisen spontaneously, as moses arch critic jane jacobs argued in the death and life of great american cities (1961). wetherell regards post-thatcherite neoliberalism, in the form of shopping malls and private housing estates, with suspicion but individualism lends cities much of their charm.

Wilson sets out to match mumfords sweep in metropolis, and he brilliantly synthesises the forces that make cities hum. many of the most powerful flourished as the hubs of trade empires, from lbeck in northern germany, capital of the medieval hanseatic league, to amsterdam. if i were king of lisbon, i would soon rule over the whole world, said charles v of portugals 16th-century capital.

Global magnetism can only be exerted by a few cities at a time: lisbons rise coincided with venices fall. the city represented a giant social network, a place where ideas and practices spread through the system in the most efficient way, igniting change, wilson writes of 17th-century amsterdam. the dutch city did not just attract traders; it spawned consumers, as shanghai has done in the early 21st century.

A promenade in the vauxhall pleasure gardens was among the delights of georgian london, and all classes frequented the theatre, a place where it felt like the city of a million people came together, wilson writes. those who flock to cities must feel an increase in humanity, from the very habit of conversing together, and contributing to each others pleasure and entertainment, wrote the 18th-century philosopher david hume.

London had puppet shows, rope dancers, jugglers, strolling players, waxwork museums, fairgrounds and punch and judy shows. commercial mass sporting events started in the 1730s with 10,000 spectators being drawn to the artillery ground to watch cricket. sex was also on offer: william hogarths a harlots progress records the descent of a naive country girl, tempted by fine new clothes, into a courtesan.

Clustering enabled education as well as entertainment, including visits made by robert hooke of the royal society to london coffee houses in the 1670s to gain a wider audience for his science lectures. here, civilisation makes its miracles, and civilised man is turned back almost into a savage, judged alexis de tocqueville of manchester, but cities can also elevate. financial trading and insurance sprung out of coffee houses.

Liberated from pestilence and attracted by the restoration of human-scale districts, job opportunities, and a fall in crime, it is no wonder that professionals moved eagerly to the core of cities from the 1980s onwards. what wilson calls the intoxicating metropolis gains power from human proximity.

I choose not the suffocating anaesthetic of the suburbs, but the violent jolt of the capital . . if it is a choice between richmond and death, i choose death, declares virginia woolf in david hares film adaptation of michael cunninghams 1998 novel the hours (the town also got a harsh review in ts eliots 1922 poem the wasteland: highbury bore me. richmond and kew/undid me.).

Urban magnetism is now under threat but ged popes charming circuit of londons suburbs and the figures who frequented them in all the tiny moments blazing is a reminder that cities have coped with worse. even urban smog has its benefits: monet worked in the park whilst i, living at lower norwood, at that time a charming suburb, studied the effects of fog, snow and springtime, camille pissarro wrote of 1870.

Cities have always attracted artists and musicians. i know i come from woking/and you say im a fraud/but my heart is in the city/where it belongs, sang paul weller of the jam in 1977. wilson writes that hip-hop was conceived in 1973 at 1520 sedgwick avenue in the bronx, at a party in an apartment block wedged between interstate 87 and the cross bronx expressway.

But others have settled for richmond, or other suburbs, as pope records. arthur conan doyle lived in tennison road, norwood, setting for one of the first sherlock holmes stories. in coming up for air (1939), george orwell lamented streets that fester all over the inner-outer suburbs with the stucco front, the creosoted gate, the privet hedge, the green front door.

Migration from the declining inner city to the new suburbs was common in the mid-20th century, and not just in london. businesses also moved: the taiwanese-american computer industry emerged in the san gabriel valley, near los angeles; the mythical silicon valley sprung up between san francisco and san jose in northern california, rooted by stanford university.

Cities are not only resilient, they are also adaptive systems, wilson writes. if covid-19 makes some question the inner city and think of moving out, it will not be for the first time. nor is it likely to overturn the fundamentals of humankinds choice: we decamped to the city for good reasons 5,000 years ago for the proximity, opportunities, sociability and sensual pleasures it offered.

Modernisers have spotted an opportunity in covid-19 and economic upheaval. the future now feels radically open in ways that were unimaginable just six years earlier, concludes wetherell with relish. but the future of the city is more likely to be made by ambition, artistry, emotion and imagination than by planning.

The fields from islington to marylebone/to primrose hill and st johns wood/were builded over with pillars of gold/and there jerusalems pillars stood, wrote william blake, the visionary artist who was born in londons soho. he started the poem in a sussex village, but his heart was in the city and he returned.

Metropolis: a history of humankinds greatest invention, by ben wilson, jonathan cape, rrp25, 448 pages

Foundations: how the built environment made twentieth-century britain, by sam wetherell, princeton, rrp$35/30, 272 pages

All the tiny moments blazing: a literary guide to suburban london, by ged pope, reaktion books, rrp25, 560 pages

Underground cities: mapping the tunnels, transits and networks underneath our feet, by mark ovenden, frances lincoln, rrp30, 224 pages

John gapper is the ft weekends business columnist

Join our online book group on facebook at ft books caf