At that moment, the god Ameno-Tajikarawo (天手力男命) closed the cave behind her, so she could not go back in. Another god tied a magic rope across the entrance. The sun goddess was then asked by the Kami Ame-no-Koyane (天児屋根命) to go back with the gods. She agreed, and light came back to the earth.