The petition was filed in the civil court on Wednesday by Hari Shankar Jain and five others over ownership of the 17th century Mughal monument.
Lawyer for the plaintiffs Rajesh Kulshreshtra told PTI that the court refused to entertain the petition and dismissed it yesterday.
"We will now approach the Allahabad High Court and we are confident our PIL will be admitted on merit there," Kulshreshtra said.
He claimed that there was substantial evidence to prove that the Taj Mahal was a Shiva temple, dedicated to Lord Agreshwar Mahadev. The suit demanded that the monument's ownership be transferred to Hindus and Muslims be restrained from offering prayers there.