A villa was originally an ancient Roman upper-class country house. Since its origins in the Roman villa, the idea and function of a villa have evolved considerably. After the fall of the Roman Republic, villas became small farming compounds, which were increasingly fortified in Late Antiquity, sometimes transferred to the Church for reuse as a monastery. Then they gradually re-evolved through the Middle Ages into elegant upper-class country homes. In modern parlance, 'villa' can refer to various types and sizes of residences, ranging from the suburban "semi-detached" double villa to residences in the wildland–urban interface.
In ancient Roman architecture a villa was originally a country house built for the élite. Pliny the Elder, writing in the first century CE, identified several kinds of villas:
Not included as villae were the domus, a city house for the élite and privileged classes; and insulae, blocks of apartment buildings for the rest of the population. In Satyricon (1st century CE), Petronius described the wide range of Roman dwellings. Another type of villae is the "villa marittima", a seaside villa, located on the coast.
A concentration of Imperial villas existed on the Gulf of Naples, on the Isle of Capri, at Monte Circeo and at Antium (Anzio). Examples include the Villa of the Papyri in Herculaneum; and the "Villa of the Mysteries" and "Villa of the Vettii" in Pompeii.