The Haji Mejid baths were built in the 16th century on the sulfur springs in Jorat under the guidance of a local resident named Alimkhan.
At a depth of about one and a half meters underground, from the bathhouse to the sea, clay pipes were laid to discharge wastewater.
In June 2016, the news publication Heberle stated that the Haji Mejid hammam was designated as being under protection.
In an interview dated April 22, 2019, the press secretary of the State Service for the Protection, Development and Restoration of Cultural Heritage under the Ministry of Culture of the Republic of Azerbaijan, Fariz Huseynov, said that the building was not registered as a monument.
By this time, the baths had been abandoned for about 70 years and were not protected by the state in any way, which led to their gradual destruction.