If you are referring to the last episode of the anime (i.e. episode 52): This is further expanded on and fully resolved in the OVA (and manga): And that's how Tamahome comes out of The Universe of the Four Gods

Only top voted, non community-wiki answers of a minimum length are eligible