Ourense ; Spanish: Orense ( ) is a city and the capital of the province of Ourense, located in the autonomous community of Galicia, northwestern Spain.