 Near the end of the Han dynasty in 189, a group of eunuchs known as the Ten Attendants managed to gain considerable power at the imperial court, so that a number of warlords decided they had to be eliminated to restore the emperor's government.However, the loyalist warlord He Jin was lured into a trap inside the palace and killed by the eunuchs.The other warlords led by Yuan Shao then stormed the palace and massacred the Ten Attendants and many other eunuchs.