An abundance of prehistoric remains testify that the Condado de Treviño has been inhabited since ancient times. In pre-Roman times, the Varduls, Caristios and Autrigones all lived here at one time or another, attesting to the region's strategic importance. At the beginning of the 11th century, Alavese comarcas of the riverIvita began to be established, in the basin of what is now known as the River Ayuda, a tributary of the Zadorra, between the Montes de Vitoria to the north and the Sierra de Toloño and other ranges of the Sierra de Cantabria to the south. The name Treviño may stem from Trifinium, postulated as Latin for 'boundary of the three tribes'.
Foundation of the city of Treviño
The earliest surviving written record of the comarca Rigo de Ivita is in a document from 1025, the Reja de San Millán from the Cartulary of San Millán de la Cogolla. The notation "XXXV regas" next to the name suggests that it was a place of major importance, with more irrigated fields than any other location on the list. Treviño itself was founded by Navarrese king Sancho VI no later than 1161; some authors say as early as 1151. The date is indeterminate because the text of the fuero is not preserved, but it would clearly have been founded in the same period as the nearby Puebla de Arganzón and Vitoria-Gasteiz. The royal foundation indicates that at that time the region was controlled by the kings of Navarre, not of Castile.
Rule by Castile
After the comarca was conquered in 1199–1200 by Alfonso VIII of Castile, it retained the name of Ivita, Ibidam, or Uda and continued to be identified as a specific part of the land of Álava, as is clearly indicated in De rebus Hispaniae by archbishopRodrigo Jiménez de Rada. Gradually, the predominance of the town that develops based on fueros granted by Alfonso X of Castile in 1254 supplants the old comarcal name; the area comes to be referred to as de Treviño rather than de Uda, although for about a century the town is known as Treviño de Uda. Following its incorporation into Castile, a good portion of Álava was organized into behetrías, at least nominally choosing their own local leader. However, Treviño and Vitoria were not included in this plan, remained directly under the control of the monarch as part of the royal seigneury. In 1332, at the Campo de Arriaga the Cofradía of Álava formally recognized the royal seigneury over Treviño and its surrounding territories. On 8 April 1366, Henry II of Castile ceded to Pedro Manrique I de Lara, for services rendered, a seigneury consisting ofTreviño de Uda and its outlying villages. In 1453 it became the Condado de Treviño when Gómez Manrique was given the title of count. The Catholic Monarchs would later grant the title of Duke of Nájera to Gómez Manrique's son Pedro Manrique de Lara, a title that continues in the family down to the present day. In the 16th century these counts of Treviño, dukes de Nájera, would build a palace at Treviño, which is now the ayuntamiento of the municipality. Thus Treviño found itself generally left to its own devices as the seat of a noble family, sitting in the middle of Álava, surrounded by communities operating under the more egalitarian fueros typical of the Basque Country.
Annual festivals and events
The Fiesta of San Juan Bautista, the patron saint of Treviño proper, is celebrated June 24. When that falls on a weekday, some of the festivities take place on the nearest weekend.
Feria de las Moscas The first Sunday in July, unless that falls on 1 July, in which case the fair takes place 8 July.