The General in His Labyrinth explores the labyrinth of Bolívar's life through the narrative of his memories, in which "despair, sickness, and death inevitably win out over love, health, and life". Following the success of "One Hundred Years of Solitude" and "Love in the Time of Cholera", García Márquez decided to write about the "Great Liberator" after reading an unfinished novel by his friend Álvaro Mutis. He borrowed the setting—Bolívar's voyage down the Magdalena River in 1830—from Mutis. García Márquez spent two years researching the subject, encompassing the extensive memoirs of Bolívar's Irish aide-de-camp, Daniel Florencio O'Leary, as well as numerous other historical documents and
Love in the Time of Cholera age. The story occurs mainly in an unnamed port city somewhere near the Caribbean Sea and the Magdalena River. Given that Rafael Núñez is mentioned as the "author of the national anthem", the country is likely Colombia. While the city remains unnamed throughout the novel, descriptions and names of places suggest it is based on Cartagena with the addition of the Magdalena River, which meets the sea at the nearby city of Barranquilla. The fictional city is divided into such sections as "The District of the Viceroys" and "The Arcade of the Scribes." The novel takes place approximately during the