Approximate area settled by Illyrian tribes during classical antiquity
In classical antiquity, Illyria (//; Ancient Greek: Ἰλλυρία, Illyría or Ἰλλυρίς, Illyrís; Latin: Illyria, see also: Illyricum) was a region in the western part of the Balkan Peninsula inhabited by numerous tribes of people collectively known as the Illyrians. Besides them, this region was also settled, in various times, by some tribes of Celts, Goths and Thracians. Illyrians spoke Illyrian languages, a group of Indo-European languages, which in ancient times perhaps had speakers in some parts in Southern Italy. The geographical term Illyris (distinct from Illyria) was used to define approximately the area of northern and central Albania down to the Aoös valley, including in most periods much of the lakeland area.
In Greek mythology, the name of Illyria is aetiologically traced to Illyrius, the son of Cadmus and Harmonia, who eventually ruled Illyria and became the eponymous ancestor of the Illyrians. A later version of the myth identifies Polyphemus and Galatea as parents of Celtus, Galas, and Illyrius.
Ancient Greek writers used the name "Illyrian" to describe peoples between the Liburnians and Epirus. Fourth-century BC Greek writers clearly separated the people along the Adriatic coast from the Illyrians, and only in the 1st century AD was "Illyrian" used as a general term for all the peoples across the Adriatic. Writers also spoke of "Illyrians in the strict sense of the word"; Pomponius Mela (43 AD) the stricto sensu Illyrians lived north of the Taulantii and Enchele, on the Adriatic shore; Pliny the Elder used "properly named Illyrians" (Illyrii proprii/proprie dicti) for a small people south of Epidaurum, or between Epidaurum (now Cavtat) and Lissus (now Lezhë). In the Roman period, Illyricum was used for the area between the Adriatic and Danube. 
The earliest recorded Illyrian kingdom was that of the Enchele in the 8th century BC. The era in which we observe other Illyrian kingdoms begins approximately at 400 BC and ends at 167 BC. The Autariatae under Pleurias (337 BC) were considered to have been a kingdom. The Kingdom of the Ardiaei began at 230 BC and ended at 167 BC. The most notable Illyrian kingdoms and dynasties were those of Bardyllis of the Dardani and of Agron of the Ardiaei who created the last and best-known Illyrian kingdom. Agron ruled over the Ardiaei and had extended his rule to other tribes as well. As for the Dardanians, they always had separate domains from the rest of the Illyrians.
The Illyrian kingdoms were composed of small areas within the region of Illyria. Only the Romans ruled the entire region. The internal organization of the south Illyrian kingdoms points to imitation of their neighbouring Greek kingdoms and influence from the Greek and Hellenistic world in the growth of their urban centres. Polybius gives as an image of society within an Illyrian kingdom as peasant infantry fought under aristocrats which he calls in Greek Polydynastae (Greek: Πολυδυνάστες) where each one controlled a town within the kingdom. The monarchy was established on hereditary lines and Illyrian rulers used marriages as a means of alliance with other powers. Pliny (23–79 AD) writes that the people that formed the nucleus of the Illyrian kingdom were 'Illyrians proper' or Illyrii Proprie Dicti. They were the Taulantii, the Pleraei, the Endirudini, Sasaei, Grabaei and the Labeatae. These later joined to form the Docleatae.
The Romans defeated Gentius, the last king of Illyria, at Scodra (in present-day Albania) in 168 BC and captured him, bringing him to Rome in 165 BC. Four client-republics were set up, which were in fact ruled by Rome. Later, the region was directly governed by Rome and organized as a province, with Scodra as its capital.
The Roman province of Illyricum replaced the formerly independent kingdom of Illyria. It stretched from the Drilon river in modern Albania to Istria (Croatia) in the west and to the Sava river (Bosnia & Herzegovina) in the north. Salona (near modern Split in Croatia) functioned as its capital.
After crushing a revolt of Pannonians and Daesitiates, Roman administrators dissolved the province of Illyricum and divided its lands between the new provinces of Pannonia in the north and Dalmatia in the south. Although this division occurred in 10 AD, the term Illyria remained in use in Late Latin and throughout the medieval period. After the division of the Roman Empire, the bishops of Thessalonica appointed papal vicars for Illyricum. The first of these vicars is said to have been Bishop Acholius or Ascholius (died 383 or 384), the friend of St. Basil. In the 5th century, the bishops of Illyria withdrew from communion with Rome, without attaching themselves to Constantinople, and remained for a time independent, but in 515, forty Illyrian bishops renewed their loyalty to Rome by declaring allegiance to Pope Hormisdas. The patriarchs of Constantinople succeeded in bringing Illyria under their jurisdiction in the 8th century.
The name Illyria only disappears from the historical record after the Ottoman invasion of the Balkans in the 15th century, and re-emerges in the 17th century, acquiring a new significance in the Ottoman–Habsburg Wars, as Leopold I designated as the "Illyrian nation" the South Slavs in Hungarian territory. Several armorials of the Early modern period, popularly called the "Illyrian Armorials", depicted fictional coats of arms of Illyria.
The name Illyria was revived by Napoleon for the Illyrian Provinces that were incorporated into the French Empire from 1809 to 1813, and the Kingdom of Illyria (1816–1849) was part of Austria until 1849, after which time it was not used in the reorganised Austro-Hungarian Empire.
William Shakespeare chose a fictionalized Illyria as the setting for his play Twelfth Night. (In the modernised film spoof She's the Man, this function is served by "Illyria High School" in California.) An extensive history of Illyria by Charles du Fresne, sieur du Cange, was published by Joseph Keglevich in 1746. Shakespeare also mentioned the region in the Part 2 of the play Henry VI.