The War of the End of the World (Spanish: La guerra del fin del mundo) is a 1981 novel written by Peruvian novelist Mario Vargas Llosa. It is a novelization of the War of Canudos conflict in late 19th-century Brazil.
In the midst of the economic decline — following drought and the end of slavery — in the province of Bahia in Northeastern Brazil, the poor of the backlands are attracted by the charismatic figure and simple religious teachings of Antonio Conselheiro, the Counselor, who preaches that the end of the world is imminent and that the political chaos that surrounds the collapse of the Empire of Brazil and its replacement by a republic is the work of the devil.
Seizing a fazenda in an area blighted by economic decline at Canudos the Counselor's followers build a large town and defeat repeated and ever larger military expeditions designed to remove them. As the state's violence against them increases they too turn increasingly violent, even seizing the modern weapons deployed against them. In an epic final clash a whole army is sent to extirpate Canudos and instigates a terrible and brutal battle with the poor while politicians of the old order see their world destroyed in the conflagration.
It is generally believed that Vargas Llosa's three milestone novels are La Ciudad y Los Perros (The Time of the Hero), La Casa Verde (The Green House) and Conversación en la Catedral (Conversation in the Cathedral), though many critics agree that The War of the End of the World should also be included among these three. The author is famously known for considering this his most accomplished novel — an opinion shared by the Chilean novelist Roberto Bolaño, as well as the American critic Harold Bloom, who includes the novel in what he calls the "Western canon".