The final battle ends with Sora defeating Xehanort (or some surprisingly even greater foe) by connecting to the hearts within Kingdom Hearts.
The Xehanort -saga will end, and the King of Hearts -saga will begin.
Nice one! That'd fit the Maleficent movie right in.