The main result of this paper is the determination of all plane polynomial
vector fields that admit a prescribed collection of algebraic curves as inv
ariant sets. As an application, the polynomial vector fields admitting cert
ain types of algebraic integrating factors are characterized.