John V and John VI were rival emperors in a civil war fought from 1341 to 1347. The two sides at last reached an agreement. According to its terms John VI would be recognized as senior co-emperor with John V as his junior. The peace was sealed with the marriage of Helena to John V.