In 1373, John V's son and heir Andronikos IV Palaiologos rebelled against his father in an attempt to seize the throne, instigating a fourth series of Palaiologan civil wars. John V was initially victorious, imprisoning and disinheriting Andronikos IV and appointing a younger son, Manuel II Palaiologos, as his successor instead. However, Andronikos eventually escaped from prison and successfully took the throne in 1376 with aid from Genoa, imprisoning his father and his younger brother. John V retook the throne in 1379 but reached an agreement with Andronikos in 1381, wherein Andronikos was to succeed him as emperor, passing over Manuel. Andronikos died in 1385 and his son, John VII Palaiologos briefly managed to usurp the throne in 1390. Following this, Manuel II was firmly established as John V's successor, becoming senior emperor upon John's death in 1391.