About the event
After the team rescues Rin, a cave-in leaves Obito Uchiha pinned beneath a massive boulder, with half his body crushed. Realizing he will not survive, Obito remembers that he never gave Kakashi a gift to celebrate his promotion to jonin. He offers Kakashi his left Sharingan, asks Rin to perform the transplant, and entrusts her safety to his friend. The scene establishes the origins of Kakashi's Sharingan and symbolizes the bond between the two young shinobi.
Sources and references
岸本斉史, Naruto, Chapter 243 · Chronicle 5: A Gift (Weekly Shonen Jump 2005 #3-4, Shueisha)
