Viana do Castelo is a city and municipality in Portugal. It is the capital of the Viana do Castelo District. In 2011, 88,725 people lived there, and its area is 319.02 km². It is on the Atlantic Ocean at the mouth of the Lima River.