He loved beatrice and his work was inspired by her especially after her death, When he was thirty-five, he served as the ruling magistrate of the Republic of Florence. Two years later, in 1302, there was a violent political upheaval, and Dante was banished from his home city of Florence for the rest of his life, charged with graft, treason, intrigue against the peace of the city, and hostility against the pope. He was a political enemy to those in power, so the list of charges was extensive. In exile, he resumed his career as a poet and began one of the most ambitious works in the history of literature. He decided to write an epic poem about man’s life in this world and in the world after death. He shaped the poem around a journey through Hell, Purgatory and Paradise. It was to become the masterpiece of the Middle Ages.