The war ended with the Treaty of Aix-la-Chapelle in 1748. Maria Theresa was confirmed as Archduchess of Austria and Queen of Hungary, but Prussia kept control of Silesia. The peace did not last, however, because of Austria's desire to recapture Silesia and the political upheaval in Europe, and soon came the Seven Years' War (1756–1763).