According to Hindu mythology, Kamdev established the Kamakhya temple. Relationships that prevail between time and creation that time destroys everything. So, the temple too destroyed in course of time. There is a mythological story. That explains the relationships that existed between the decaying of the temple and Maha Muni Bashisto Dev.
It written in the Kalika Puran that Maha Muni Bashisto Dev used to stay at Sandhyachal Hills. The land of Kamrup was ruled by Narakashur at that time. One day, Bashisto Dev came to the Kamakhya temple to see Devi Kamakhya. The relationships that existed between them not good. Narakashur prevented him to see Devi Kamakhya for some reason.
Bashisto Dev got angry with Narakashur, and he cursed Narakashur that so long he will be alive, Devi Kamakhya will be invisible. So, Devi went invisible then. The temple remained empty. Forest engulfed the place after some time.
In the eighth century, Shankaracharya, as a part of his promotional outreach for Hinduism, came here and rebuild the temple after cleaning up the forest. He re-established the Maha Pith. Though the temple constructed, Devi Kamakhya did not become popular among common Hindus. Relationships that developed between people and the temple not enough intimate.