 On the brink of death, Obito opposes Madara, restrains Black Zetsu and keeps the parasite from returning to Madara with the Rinnegan.His defiance is short-lived, and he is comatose after Madara uses the eye he gave Kakashi to reach him and forcefully exchange left eyes.Black Zetsu leaves him soon afterwards.