Answer:
When the direction of the force is parallel to the displacement of the object
Step-by-step explanation:
The work done by a force when moving an object is given by:

where
F is the magnitude of the force
d is the displacement of the object
is the angle between the force's direction and the displacement
From the formula, we see that the work done is maximum when

which occurs when

so, when the force is parallel to the displacement.