Here are 10 facts from this big story
It is a big step forward for the five women, who want permission for yearlong puja and rituals in a part of the mosque complex. They claim there are idols of Hindu gods and goddesses in the complex.
Muslim petitioners, mainly mosque administrators, want the petition thrown out and say they are ready to fight till the Supreme Court.
Their challenge was rejected on all three counts they had cited. The most important of these is the 1991 law that freezes the status of a place of worship as it existed on August 15, 1947. The petitioners don't want ownership, just the right to worship, the court said.
Earlier this year, a lower court ordered the filming of the centuries-old mosque based on the petition of the women.
The videography report, controversially leaked by the Hindu petitioners, claimed a "Shivling" or relic of Lord Shiva had been found in a pond within the mosque complex used for "Wazoo" or purification rituals before Muslim prayers.
A court then sealed the pond and banned large namaz gatherings in the high-profile mosque. The gatherings should be limited to 20 people, said the court.
The filming inside the mosque was challenged in the Supreme Court by the Gyanvapi mosque committee, which said the move violates the 1991 law (Places of Worship Act).
The Muslim petitioners argued that "such petitions and sealing of mosques will lead to public mischief and communal disharmony, will affect mosques across the country".
In May, the Supreme Court assigned the case to the city's most senior judge, referring to the "complexity and sensitivity" of the dispute that it said requires experienced handling.
The Gyanvapi mosque located in Prime Minister Narendra Modi's constituency (Varanasi), is one of the several mosques that Hindu hardliners believe were built on the ruins of temples. It was one of the three temple-mosque rows, besides Ayodhya and Mathura, which the BJP raised in the 1980s and 90s, gaining national prominence.
Why High Court Rejected Challenge To Hindu Prayers In Gyanvapi Cellar Allahabad High Court Verdict Today On Allowing Hindus To Pray In Gyanvapi Cellar "Trust Is Breaking": Muslim Body On Court Order On Gyanvapi Mosque "I Don't See Future In US": Musk's Transgender Daughter After Trump's Win Elon Musk Replies To 'We Need Your Help Removing Trudeau' Post "First-Ever In US History": Trump Picks A Woman White House Chief Of Staff Chaos In Jammu And Kashmir Assembly Again Over Resolution For Article 370 Fired Worker Shoots Ex-Boss In New York City. Flees Through Subway Tunnels Elon Musk Replies To 'We Need Your Help Removing Trudeau' Post Track Latest News Live on NDTV.com and get news updates from India and around the world.