三国遺事
This is interpreted by scholars as a power struggle within the court, and the rise of the Jin clan over the Hae clan; the "Samguk Yusa" says that he was deposed.