Ventspils is a city in northwestern Latvia in the Courland historical region of Latvia, the sixth largest city in the country.