It was the wall....of....fire that Obito put up. A cracking wall of fire.
This was a pretty confusing chapter... Like why did the tree's grip loosen all of a sudden? And why didn't Tobi use mokuton to capture Naruto before?
I don't think Madara looks defeated, more like he decided to sit around an do nothing.