As Gollum was leading the Frodo and Sam to Mordor he realized that they were too strong for him to overpower and reclaim the One Ring, and Sam also had the bright Elven knife. He devised a plan to lead them up the Stairs and into the Tunnels of Cirith Ungol where the giant spider Shelob lived, hoping to recover the Ring after she had eaten them.