The fountain at the juncture of three roads (tre vie) marks the terminal point of the Aqua Vergine, one of the ancient aqueducts that supplied water to Rome. In 19 BC, supposedly with the help of a virgin, Roman technicians located a source of pure water only 14 miles (22 km) from the city. This Aqua Virgo was carried over Rome's shortest aqueduct directly to the Baths of Agrippa and served Rome for more than four hundred years. . The "coup de grace" for late classical Rome came when the Goth besiegers broke the aqueducts. Medieval Romans were reduced to polluted wells and the dangerous water of the Tiber, which was also used as a sewer.
The Roman custom of building a handsome fountain at the endpoint of an aqueduct that brought water to Rome was revived in the 15th century, with the Renaissance. In 1453, Pope Nicholas V Parentucelli finished mending the Aqua Vergine aqueduct and built a simple basin, designed by the humanist architect Leon Battista Alberti, to herald the water's arrival.
In 1629, Pope Urban VIII Barberini, finding the earlier fountain insufficiently dramatic, asked Bernini to do some drawings for it, but when the Pope died the project was abandoned. Bernini's lasting contribution was to resite the fountain from the other side of the square to face the Quirinal Palace (so the Pope could look down and enjoy it too). Though Bernini's project was torn down for Salvi's fountain, there are many Bernini touches in the fountain as it was built.
Competitions had become the rage during the Renaissance and Baroque periods to redesign buildings, fountains, and even the Spanish Steps. In 1730, Pope Clement XII Corsini organized another contest, which Nicola Salvi actually lost — but was given the job anyway. Work began in 1732 and was finished in 1762, long after Clement's death, when Pietro Bracci's 'Neptune' was set in the central niche. Taming of the waters is the theme of the gigantic scheme that tumbles forward, mixing water and rockwork, and filling the small square. Tritons guide Neptune's shell chariot, taming seahorses (hippocamps).
The backdrop for the fountain is the Palazzo Poli, given a new facade with a giant order of Corinthian pilasters that link the two main stories. In the center is superimposed a robustly modelled triumphal arch. The center niche framing Neptune has free-standing columns for maximal light-and-shade. In the niches flanking Neptune, Abundance spills water from her urn and Salubrity holds a cup from which a snake drinks. Above, bas reliefs illustrate the Roman origin of the aqueducts.
The tritons and horses provide symmetrical balance, with the maximum contrast in their mood and poses (by 1730, the rococo is already in full bloom in France and Germany).
Nicola Salvi died in 1751, with his work half-finished, but before he went he made sure a stubborn barber's unsightly sign would not spoil the ensemble, hiding it behind a sculpted vase. The Trevi Fountain was finished in 1762 by Giuseppe Pannini, who substituted the present bland allegories for planned sculptures of Agrippa and 'Trivia", the Roman virgin.
The Fontana di Trevi is the 'Three Coins in the Fountain' fountain, the one that drenched Anita Ekberg in Federico Fellini's La Dolce Vita.
The fountain was refurbished in 1998; the stonework was scrubbed and the fountain provided with recirculating pumps and oxidizers.
A legend says that to throw a coin into the Trevi Fountain will ensure that one will return to Rome.