 Sora ascends the castle , facing off against other hooded figures who form a group called " the Organization " along the way . As Sora begins losing his memories , he gradually appears to remember a girl named Naminé as an old friend of his , and learns from the Organization member Larxene that she is being held prisoner in the castle . He also clashes with a replica of Riku created and controlled by another Organization member , Vexen , and believed by both Sora and the replica himself to be the real Riku . Axel , an Organization double agent , releases Naminé and allows her to meet Sora in person . Sora discovers Naminé to be the one manipulating his memories , having been forced to do so by Marluxia , the lord of Castle Oblivion and the figure who lured Sora there , as part of his plan to overthrow the rest of the Organization with Larxene . Sora climbs to the top of the tower and defeats Marluxia and the other Organization members , after which Naminé puts Sora and his friends into pod @-@ like machines to help them regain the memories they lost in the castle , even though they will forget the events that transpired in the castle . Before they are put to sleep , Sora and Naminé promise to meet again as real friends once he reawakens , Sora firmly believing that his memories of her and the castle will remain in his heart despite being forgotten . 
