In classical mechanics, a constraint is a relation between coordinates and momenta (and possibly higher derivatives of the coordinates). In other words, a constraint is a restriction on the freedom of movement of a system of particles.
Types of constraint
References
Constraint (classical mechanics) Wikipedia(Text) CC BY-SA