At that point, through the mediation of the Kamakura bakufu (Japanese feudal government headed by a shogun), a compromise was reached where it was decided to alternate between the two lineages, choosing the Emperor from each lineage in turn (called "ryoto tetsuritsu" in Japanese).
そこで鎌倉幕府の仲介によって、大覚寺統と持明院統が交互に皇位につく事（両統迭立）が取り決められていた。