In the series, there are not enough details on the matter. After reviving, Madara exposes his diabolical strategy, and Obito begins to have second thoughts. He tells him the events that led to the death of Rin. He kidnapped her by placing a tag in her and then sealed the Three-Tails inside her. Madara put a curse tag on her after using a genjutsu. It gave the impression that the Hidden Mist was responsible.