Mərdəkan is a settlement and municipality in Khazar raion of Baku, Azerbaijan with a population of 25,232. It's located on the eastern Absheron Peninsula only 30 km away from capital city Baku, bounded by the Caspian Sea to the north, Shuvalan to the east, Qala to the south, and Shagan to the west. Mardakan received the status of a settlement in 1936.
Less