By the early eighteenth century, the old shrine could no longer hold the pilgrims who came. In 1704, the Mercedarians planned a far larger church in honor of the Virgin. Bernardo de Cariñena, a Mercedarian friar from this very convent, had become archbishop of Cagliari at the end of the seventeenth century. The plan was that the medieval sanctuary would end up inside the new church as a chapel. The road was anything but smooth. Funds ran short, and the Savoy government opposed the project, so the works were permanently suspended in 1804. In 1866 the convent and the area of the unfinished church were confiscated, with the city of Cagliari receiving part and the state the rest. Work resumed between 1869 and 1875, but the site was left to the weather for years afterward. In 1907, Pope Pius X proclaimed the Virgin of Bonaria Patroness Maxima of Sardinia, which helped speed the reopening of the construction site. The basilica was begun in 1704 and completed in 1926. It has three naves, a wide transept and an octagonal dome about 50 meters high. Its blend of styles, Catalan Gothic beside Neoclassical, reflects the centuries of change.