Quba (also Kuba, Guba or Kuwa; Lezgin: Къуба́; Judæo-Tat: Qybə / Гъуьбэ / קאובּא) is a city in and the capital of the Quba Rayon (district) of Azerbaijan. The city lies on the north-eastern slopes of Shahdag mountain, at an altitude of 600 metres above sea level, on the right bank of the Kudyal river. It has a population of 38,100 (2010).