Cities of the Red Night is the feverish wet dream of a dying teenager who has some really screwed up fetishes. William S Burroughs was a gay paedophile heroin addict obsessed with black magic, and this book is exactly what you would expect somebody like him to write. Everything can be solved with heroin, hanging, or magical sex. Erotic asphyxiation draws a wandering soul back into the body. A young gunsmith makes a technological breakthrough whilst being anally penetrated by his best friend. An outlaw band of elite boy-assassins rise up against an empire of mutants by inducing heroin withdrawals in their eunuch slave-soldiers.
The book is nonlinear, dreamlike, and connected more by symbolism and imagery than conventional plot throughlines. The first two thirds of the book are divided between two time periods: a psychic detective mystery in the late 20th century involving mysterious sexual strnagulations of boys on multiple continents, and a crew of polyamorous gay anarchist pirates in the Age of Sail waging an insurgency against the Spanish Empire. In the book's last third, these two plotlines are mostly sidelined in favour of a time-travelling space opera revolving around the titular 'Cities of the Red Night', which existed 100,000 years ago in the modern-day Gobi Desert. There's a lot of whacky sci-fi worldbuilding involving sperm extraction gangs, cabarets culminating in sexual hangings, genetically modified slaves, and fatal chemsex— typical stuff. The plot thrust of this section deals with a gender war between a slaving evil empire of female White aristocrats (created from an alien virus) and their eunuch servants, and a rag-tag, racially heterogenous gang of outlaw boys. There's also time travel and an Old West bit. Linking these disparate settings, the same characters reappear throughout as reincarnations and doppelgangers, as well as shadowy inversions of the same places and events.
