Emperor Shirakawa
There were retired emperors, including cloistered emperors, both before and after the Heian period, but the notion of cloistered rule as a system usually refers to the practice put in place by Emperor Shirakawa in 1086 and followed by his successors until the rise of the Kamakura shogunate in 1192.