The Request
King Trishanku of the Ikshvaku dynasty had a desire: to enter heaven in his living, mortal body - not at death, but while alive, in the physical form he had.
He went to his guru Vasishtha.
Vasishtha refused: impossible, contrary to cosmic law.
Vishwamitra
Trishanku, cast out from his own kingdom after Vasishtha's curse turned him into a chandala, went to Vishwamitra - the king who had decided to become a sage.
Vishwamitra said: I will conduct the sacrifice.
The sacrifice began. Vishwamitra invited all the sages. Most refused to attend. He performed it alone with his disciples.
The Ascent and the Fall
Trishanku began rising toward heaven.
Indra met him at the gates: "No. You cannot enter heaven in a mortal body. You have been cursed. You are a chandala. Fall."
He began to fall, headfirst.
Vishwamitra called out: Stop!
Trishanku stopped, mid-air, upside down.
The Creation
Vishwamitra - in a fury that was also a demonstration of his power - began creating a parallel universe. He created the southern stars. He created a new heaven. He began creating a new Indra.
Brahma and the gods, concerned about two competing universes, came to negotiate.
The compromise: Trishanku gets his heaven. He stays upside down in it. The stars Vishwamitra created remain. The parallel heaven exists - a strange, inverted pocket universe.
Vishwamitra agreed. The creation stopped.
Trishanku hangs upside down in his own heaven, forever.