 After the Pomeranian struggle he also had to deal with the inheritance conflict upon the 1476 death of the Piast duke Henry XI of Głogów, husband of his half-sister Barbara.On 25 August 1476 in Berlin John married Margaret of Wettin, a daughter of Landgrave William III of Thuringia with Anne, Duchess of Luxembourg.Their children were