The Qala Complex is an archaeological site located near the town of Mardakan in Baku, Azerbaijan. The complex includes the ruins of a medieval castle, a bathhouse, and a mosque. The castle dates back to the 12th century and was built during the Shirvanshahs' reign. The castle's walls were constructed from cobblestone, and the interior was adorned with beautiful tiles and carvings.
The bathhouse was built in the 14th century and was used for ritual purification before prayer. It features a central dome supported by pillars and several smaller rooms with vaulted ceilings. The bathhouse also has a pool, which was used for ablutions.
The mosque at the Qala Complex is believed to have been built in the 14th century. It was constructed from baked bricks and has a rectangular prayer hall with a dome. The mosque is unique in its design, as it features a four-pillared open courtyard with arches and domes.