This has got to be the most undiscoverable feature with the iPad. You can create a split screen by just dragging a tab to the right side and you get the split screen.
But how do you turn it off. It turns out that the trick is long press on the tab button and you will see a “Merge all tabs” entry