A knot vector is a sequence of parameter values that determines how control points influence a B-spline curve or surface. It plays a crucial role in defining the continuity and smoothness of the generated spline, affecting the shape and flexibility of the curve or surface.