In 1182, the 19-year-old Yoshitoki, amidst the war, wed. His wife is unknown. We do know that in 1183, they had their first child, Hōjō Yasutoki, who would become the heir to the Hōjō following his father's death. The previous year, Yoritomo and Masako had a son, who would be the Minamoto heir, Minamoto no Yoriie. In 1183, Yoritomo's rival and cousin, Minamoto no Yoshinaka, entered Kyoto and drove out the Heike (and the young Emperor Antoku). Yoshinaka was then driven out of Kyoto by Yoshitsune in the name of Yoritomo. The Minamoto quickly enthroned Emperor Go-Toba.