The rest of Malayaketu's allies deserted him, disgusted at his treatment of the five slayed allies. Rakshasa managed to escape, tracked by Chanakya's spies. One of Chanakya's spies, disguised as a friend of Chandana-dasa, got in touch with him. He told Rakshasa that Chandana-dasa was about to be executed for refusing to divulge the location of Rakshasa's family. On hearing this, Rakshasa rushed to Pataliputra to surrender and save the life of his loyal friend Chandana-dasa. When he reached Pataliputra, Chanakya, pleased with his loyalty to Chandana-dasa, offered him clemency. Rakshasa pledged allegiance to Chandragupta and agreed to be his prime minister, in return for release of Chandana-dasa and a pardon for Malayaketu. Chanakya then bound his top knot, having achieved his objective, and retired.