Heerenveen is a town and municipality in the province of Friesland (Fryslan), in the north of the Netherlands.