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.
Quba was mentioned in works of various European geographers, in ancient Arabic and Albanian sources.
[citation needed] Guba (Quba) city originated from the riverside village of Gudial.
In the mid-18th century, after moving his residence from Khudat, Hussain Ali became Quba's Khan (tribal Turkic Muslim ruler) and raised fortress walls around the city.
After the rehabilitation Quba was included in the Derbent province in 1840 and then in the Kuba Uyezd of the Baku Governorate in 1860.
[3] Alexandre Dumas, Russian orientalist Berezin, the writer Bestuzhev-Marlinsky, the Norwegian scholar and adventurer Thor Heyerdahl visited Quba at the time.
[4][5] Quba has enjoyed strong economic growth over the last decade, much of it spurred by tourism and the construction industry.
The city's suburb of Qırmızı Qəsəbə (formerly in Russian: Красная Слобода, Krasnaya Sloboda; literally "Red Town") is home to the country's largest community of Mountain Jews and one of the largest Jewish populations in the former Soviet Union.
[12] Inside of the mosque there is a big hall crowned with a huge 16 m diameter dome.
The top of the facade is surrounded by an original eaves made from small bricks.
From top this stately building is crowned with a big white metal dome in the shape of a multi-faceted helmet.
[12] The Museum of Local History named after Abbasgulu Bakikhanov was founded in 1943 in Quba.
The museum was opened in the building, located along Ardabil Street, in which Bakikhanov himself lived at the time.
[12] It is said that this park, named after Persian poet Nizami Ganjavi, was built by captured Germans in 1946.
The football field, which accommodates 5,100 spectators, is equipped with all the amenities that meet the requirements of this sport.