Travnik (Травник) is a town and a municipality in Bosnia and Herzegovina. It is the administrative center of Central Bosnia Canton of the Federation of Bosnia and Herzegovina. It is situated in central Bosnia and Herzegovina, west of Sarajevo. As of 2013, the town had a population of 15,344 inhabitants, while the municipality had 53,482 inhabitants.
Historically, it was the capital city of the governors of Bosnia from 1699 to 1850, and has a cultural heritage dating from that period.
Travnik is located near the geographic center of Bosnia and Herzegovina at . The river Lašva passes through the town, flowing from west to east before joining the Bosna. Travnik itself is built in the large Lašva valley, which connects the Bosna river valley in the east with the Vrbas river valley in the west.
Travnik is found above sea level. Its most distinguishing geographic feature are its mountains, Vilenica and Vlašić. Vlašić, named after the Vlachs, is one of the tallest mountains in the country at .
A large karst spring, the Plava Voda wellspring, rises under Vlašić mountain, just below Travnik Castle, in the very center of the Old Town of Travnik.
Travnik has a continental climate, located between the Adriatic sea to the South and Pannonia to the North. Average summer temperature is . Average winter temperature on the other hand is a cold . It snows in Travnik every year.
Although there is evidence of some settlement in the region dating back to the Bronze Age, the true history of Travnik begins during the first few centuries AD. Dating from this time there are numerous indications of Roman settlement in the region, including graves, forts, the remains of various other structures, early Christian basilicas, etc. In the town itself, Roman coins and plaques have been found. Some writing found indicates the settlement is closely connected to the known Roman colony in modern-day Zenica, away.
In the Middle Ages the Travnik area was known as the župa Lašva province of the medieval Bosnian Kingdom. The area is first mentioned by Bela IV of Hungary in 1244.