Take the swirling green portal in the bottom-right corner. That's the exit from the Mushroom Palace.
If it isn't appearing, you may still have an unfinished objective in the area — the portal sometimes only activates once the local task is done.