Meanwhile, Louis of Hungary had lost much of his army about Naples, swept off by plague. He himself returned to Hungary, carrying with him the son of Joanna, born two months after the death of Andrew, deserted by her at Naples; the child, however, died soon after. Joanna, whitewashed by the Pope, returned to Naples in 1348, in August, whereupon Louis again appeared in Italy at the head of an army, but met with small success, and a truce was arranged; whereupon Joanna returned to Avignon, there to have her guilt or innocence formally tried before three cardinals nominated by the Pope.
Louis accused Joanna of being more than accessory to the murder of her husband, and Louis of Tarentum of being an instigator of the crime, and Cardinal Talleyrand Perigord as having also been in the plot.
Joanna appeared before the Papal Commission. She pleaded guilty only to having disliked her husband, and claimed that this was due to witchcraft. She was acquitted as innocent of all charges brought against her; and as the Pope was regarded as infallible judge, in morals as in matters of faith, the world was constrained to acquiesce in the judgment.
Joanna returned to Naples, where she held a gay, voluptuous court, frequented by the wits and artists of Italy. Boccaccio wrote for her his filthy tales, which he afterwards grouped together in the Decameron. Petrarch corresponded with her. Leonardo da Vinci painted her portrait; pupils of Giotto painted for her; Troubadours sang before her, and were fulsome in their praise.
But her rule was no rule at all. The country suffered from misgovernment. Companies of adventurers ravaged the kingdom, and carried their depredations to the very gates of Naples. Joanna cared for none of these things; did not give over her revelries and carnival entertainments. Her husband Louis was offended at her shameless gallantries, and beat her with his fists. He died in May, 1362; and she at once offered her hand to James of the House of Aragon, claimant to the throne of Majorca, a young and chivalrous prince. He accepted, and they were married in 1363; but she would not allow him any further title than that of Duke of Calabria.
He was disgusted with the frivolity of her Court, and with her conduct, and fearing lest the same fate should befall him that had come on her first husband Andrew, he quitted Naples and fled to Spain. James of Aragon died, and in 1376 Joanna married Otto of Brunswick. This fourth marriage offended Charles of Durazzo, grandson of John de Gravia, younger brother of Robert, King of the Two Sicilies, who calculated on succeeding to the throne and the county of Provence should Joanna die childless. His father Louis had been poisoned by Queen Joanna. Now ensued the great schism.
For seventy years the papal court had been at Avignon, and the Romans were sore that the money accruing from the influx of pilgrims, litigants, and suitors to the Pope should flow into the pockets of the Avignonese instead of their own. Gregory IX. had come to Rome, urged thereto by S. Catherine of Siena; and there he died in 1378. Thereupon the Romans, armed and furious, surrounded the conclave of the Cardinals, shouting for a Roman Pope. At the time there were in Rome sixteen Cardinals; eleven were French, four Italian, and one Spanish. Intimidated by the menaces of the populace, quaking for their lives, the Cardinals elected the Archbishop of Bari, a narrow-minded man, of low birth, coarse manners, no tact, and, as proved eventually, of remorseless cruelty. He showed at once of what stuff he was made by insulting the Cardinals, and by threats of swamping the college with Italian creations. The Cardinals fled to Anagni, where they issued a declaration that the election was void, as it had been made under compulsion, and that their lives had been threatened. However, the newly-elected Pope assumed the name of Urban VI. As Archbishop of Bari he had been the subject of Joanna, and she hailed his elevation, and sent him shiploads of fruit and wines, and the more solid gift of 20,000 florins. Her husband, Otho of Brunswick, went to Rome to pay his personal homage. But his reception was cold and repellent, and he retired in disgust.
Only four Cardinals adhered to Pope Urban. The Cardinals at Anagni proceeded to elect Robert, Bishop of Geneva, to the papal throne, and he assumed the title of Clement VII.
Joanna had sent a deputation to Urban, headed by her grand chancellor, Spinelli. In public, Urban treated the deputation with a torrent of abuse, saying that he would eject the queen from her throne, and shut her up in a cloister; aye, and would put in her place a man capable of governing well. Spinelli replied that the people were content with their legitimate sovereign; that she was not fit for a cloister; and that if force were used she would find arms ready to defend her.
Urban had thrown down the gauntlet. Joanna, furious at the insult, at once acknowledged Clement as Pope.