If the force and displacement are in opposite directions, the work done is negative. When the force and displacement are in opposite directions, it means that the angle between the force vector and the displacement vector is 180 degrees.
For example:
When you push an object backward, the force opposes the object’s forward motion, and work is done negatively.