Rin Tohsaka (Japanese: 遠坂 凛, Hepburn: Tōsaka Rin) is a fictional character introduced in the 2004 visual novel Fate/stay night by Type-Moon. Rin is a high school student who becomes the master of the servant Archer and participates in a war between other mages and warriors known as the Holy Grail War. In all routes she meets and allies with rookie mage Shirou Emiya, and then the two of them form a romantic relationship in the novel’s second route, Unlimited Blade Works, in which Rin is the main heroine. Outside the visual novel, Rin has appeared in its printed and animated adaptations. She is also present in the prequel Fate/Zero, a series of light novels written by Gen Urobuchi, and multiple video games based on the Fate/stay night series.