Prior to the rise of the Shogunates, courtiers after power (more power than the emperor) did so by having the emperor marry one of his daughters. This would result in the next emperor being his grandson, who would naturally defer to his mother and grandfather, often without complaint. It didn't work forever for the power-hungry family, but due to this mechanism, said family could rule Japan in the name of the Emperor, using his legitimacy as the descendant of the sun goddess while simultaneously monopolizing the imperial regent position and appointing family members to important positions. Said family would be able to rule Japan in practice, without having to risk a violent overthrow of the emperor. This of course also had the effect of preserving the imperial line.
For after the rise of the Shogunates, when this marriage-rule stopped (or rather, it continued, but stopped being useful for controlling the country) please see this thread
TL;DR: In no particular order