Agnita is a town on the Hârtibaciu river in Sibiu County, Transilvania, central Romania. It is considered the locality in the center of the country.
The first document mentioning it is a land sale contract signed in 1280 by one Henric from Sancta Agatha. In 1376, Louis I of Hungary granted to the village the right to hold a market. In 1466, Matthias Corvinusgranted to the village the right to carry trials (jus gladi) and built a fortress to defend the Kingdom of Hungary from the Ottoman Empire.