During the Middle Ages, Tortona was a faithful ally of the Guelphs and was destroyed several times. From 1260 to 1347 the city was dominated by a series of different Italian noble families and adventurers like Facino Cane, who in the unsettled affairs of Lombardy had assembled a string of lordships and great wealth which he bequeathed to his wife, Beatrice, and arranged with his friends that a marriage should be effected between her and Filippo Maria Visconti. According to Machiavelli "By this union Filippo became powerful, and reacquired Milan and the whole of Lombardy. By way of being grateful for these numerous favors, as princes commonly are, he accused Beatrice of adultery and caused her to be put to death". In this way, in 1347, Tortona was decisively incorporated into the territories of the Duchy of Milan, under which remained until 1735. Then following the vicissitudes of the War of the Polish Succession, the city was occupied by the King of Sardinia, and "count of Tortona" was added to the titles of the House of Savoy.