Ainaà ¾i (; is a Latvian port town by the Gulf of Riga in the Baltic Sea. Administratively, it is part of the Limbaà ¾i Municipality in the Vidzeme region of Latvia. It is located on the south side of the Estonia-Latvia international border, on the site of an ancient Livonian fishing village. Ainaà ¾i is also the extraterritorial center of the adjacent Ainaà ¾i Parish.
The name Ainaà ¾i may be derived from the Estonian language word heina(s)-tee 'hay-road'. Other possibilities include the Livonian words ÃÂina 'hay' or ÃÂinagi 'lonely, only'. Historically, the German language variants of the same name (e.g., Haynasch), were used in most written records from the late Middle Ages until the first half of the 20th century.
Ainaà ¾i existed for centuries as a Livonian fishing village. The town itself was first mentioned in 1564, and through the ages, changed hands among various barons and estates. Ainaà ¾i entered a great period of growth in the 1870s when its history of shipbuilding and seafaring began.
In the 19th century, Vidzeme and Courland were covered with vast forests of pine trees. Ainaà ¾i's strategic position on the sea and proximity to lumber made it a perfect place for shipbuilding. In 1864, Krià ¡jÃÂnis ValdemÃÂrs sponsored Ainaà ¾i Nautical School, the first nautical school in Livonia (today Latvia), training young Estonian and Latvian farmers to become ship captains for free. Its first headmaster was explorer Christian Dahl. The school stood for 50 years until it was destroyed in World War I. With the opening of the school and shipbuilding industry, Ainaà ¾i grew for the rest of the 19th century. From 1857 to 1913, over 50 seaworthy vessels were built in the town, and in 1902 a working port and railway station opened. By World War I, Ainaà ¾i was the fourth-largest port in all of Latvia and chief in Vidzeme, overtaking neighboring Salacgrëva. The town also had its own windmills, fish-processing plant, and brick kiln.
In World War I Ainaà ¾i was heavily damaged. The port was ruined and the entire shipping fleet destroyed. In February 1919, the Estonian army drove the Germans from Ainaà ¾i and subsequently occupied it. After the war, Ainaà ¾i became part of Latvia after its inhabitants voted for Latvia in a referendum, but Estonia's troops remained stationed there until 1920 and Estonia kept the northern section of the town, the Ikla village.
In the years of independent Republic of Latvia (1918âÂÂ1940) Ainaà ¾i was revitalized. The Ainaà ¾i fleet, sunken in the war, had completely barricaded the harbor and had to be removed. The harbor was then deepened, and the port was rebuilt in 1923 with new breakers. In 1930 the Ainaà ¾i lighthouse was built.
In World War II, however, Ainaà ¾i was destroyed again. The second naval academy burned down, the port was bombed, and the warehouses were plundered. Though the port was partially rebuilt after the war, Ainaà ¾i was overshadowed by nearby Pärnu, and lost its fish-processing factory to Salacgrëva.
After Latvia's independence was restored in 1991, a wind turbine was built in Ainaà ¾i, as well as a customs house on the Estonian border. Today, the building of the naval school hosts the (Ainaà ¾u jà «rskolas muzejs), dedicated to the history of the school and the tradition of shipbuilding along the Vidzeme coast.
Ainaà ¾i has a humid continental climate (Köppen Dfb).
The most important industries are forestry, woodworking, and trade. In addition, its location at the Latvia-Estonia border on the A1 road (Latvia), which is part of the Via Baltica international highway, favors transit/transport industries.
The population of Ainaà ¾i and the surrounding area in 2005 was 1,794 people, the smallest official town of Vidzeme. Latvians made up 92% of the inhabitants, Russians 3%, Estonians 2%, and others 4%. From 2004 the population had decreased by 5.08% (96 inhabitants).