The mosque was used by Muslims as a prayer site until 1947, when Hindu activists, who wished to see it replaced with a Rama temple, broke in and placed statues of Rama inside the mosque. Following this, the state government ordered the mosque sealed.
In 1990, Lal Krishna Advani, a top member of the Bharatiya Janata Party (BJP) began a campaign tour (a rathayatra, or "chariot-journey") to build support for a Rama temple at the mosque site. The VHP also negotiated with the All India Babri Masjid Action Committee (AIBMAC), an organisation created to represent the interests of Muslims in the mosque, over the site, each presenting evidence to the court of their claims to the site.
The mosque was destroyed on December 6, 1992, by a crowd of nearly one million activists (karsevaks) of the VHP and other associated groups. The destruction occurred at the end of Advani's rathayatra, and there is some evidence that it was pre-planned by Hindu nationalist groups.
Following the destruction of the mosque, communal riots broke out between Hindus and Muslims across India, including in Mumbai (Bombay), which was a largely secular and cosmopolitan city. It is generally accepted that the campaign to build the Rama temple and the destruction of the mosque was responsible for the BJP's meteoric rise to power.
Since then, the AIBMAC has been campaigning to have the mosque rebuilt at the same site, while the VHP has been moving forward with plans to build a Rama temple there. In December 2002 the VHP announced that it would construct the temple in a year and a half (i.e., mid 2004).