The Greeks called the bay Bathys Limen, the deep harbour, and that name became Batumi. The earliest settlement confirmed by archaeology dates to the 8th or 7th century BC, on a hillock by the Karolitskhali River that people now call Tamar's Fortress. Imported goods found there, including pieces of amphorae, show Greek contact. A Roman fort stood in the reign of Hadrian, and under Justinian I a fortress was built at Petra, north of the city.
Batumi was held by the Gurieli princes of Guria until the Ottomans took it for good. A naval blockade forced Prince Mamia II Gurieli to hand over the town and Adjara in a treaty of December 1614. The Ottomans called the town Batoum, and the region, until then Christian, took on Islam, a change complete before 1800. In 1807 a French consul found it a large village of about 2,000 people. Its port was active, and also a centre of the slave trade in the Caucasus.
In 1863 the Ottomans began a new town north-west of the old harbour, and by 1872 about 5,000 people lived there. It had Italian, Russian and Persian consulates but still scattered houses and muddy streets. Then the Ottomans lost the war of 1877 to 1878 and gave Batumi to Russia. The Russian army marched in on 25 August 1878, and the Ottoman marshal handed over the city key in what is now Freedom Square. Britain's foreign secretary persuaded Russia to declare Batumi a free port, with no naval station.
Oil made the Russian town. A railway to Tiflis and Baku began in 1883, and the Baku pipeline reached Batumi in 1900, which made it the chief Russian oil port on the Black Sea. The population went from 8,671 in 1882 to 16,000 in 1902. Batumi got city status and its own council in 1888. The Armenian cathedral, built in 1885 to 1887, dates from this boom, and the Nobel Brothers museum records the inventions that the Nobels, Rothschilds and Mantashev brought.
The refineries also made Batumi a place of labour trouble. Stalin arrived in late 1901 and took a job at the Rothschild refinery. A strike there in March 1902 ended in rioting, and the clashes left 15 workers dead, 54 wounded and 500 in prison.
After the First World War the city changed hands again and again. The Ottoman army annexed it in April 1918, the British took over in early 1919, and Georgia received it in 1920. When the Soviets took Georgia in 1921, Batumi was handed to them on condition that it keep autonomy, for the sake of its Muslims. It became the capital of the Adjar Autonomous Soviet Socialist Republic.
After 1991 Aslan Abashidze ruled Adjara as a personal fiefdom until mass protests after the Rose Revolution sent him to Russia in May 2004. Investors followed. Property prices have trebled since 2001, the Constitutional Court moved here in 2007, and several hotels opened after 2009, the Sheraton first. The Russian military base was handed over to Georgia in November 2007, and the skyline has been going up since.