A constraint is like a rule that you have to follow.
For example, let's say your mom tells you that you can only have one cookie. That means you have a constraint that you can't have more than one cookie.