 By a marriage to the last titular Queen of Majorca, Isabella, he lost the support of the emperor and had to fend off attacks from imperial and Visconti troops.This conflict concluded with restitution of territory around Pavia occupied by John to the Visconti in exchange for Visconti possessions in the area of Asti.John lost many vassals to the Visconti.