 After this relatively quiet period, Llull set out on a new trip to Africa. This time he went to Libya, on his way to Béjaïa. De vita narrates this trip in detail. Llull spent most of the time in prison. Instead of seeking to meet intellectuals, as he did on his first trip to Tunisia, right after disembarkation, he went to the main square and harangued passersby and anyone present at the time. The crowd was infuriated, and Llull was placed under arrest. The authorities questioned and imprisoned him. He would stay there for six months, receiving visits from sages who sought to convert him to Islam. He was later expelled from the city, but his hardships would not end there. His ship sank on the trip back to Genoa, but Llull and another passenger managed to survive by reaching the coast. He would then remain in Pisa, where he would finish texts he had previously began writing, such as Ars generalis ultima.