The motor drives the chain directly.
The rider's pedalling system must freewheel relative to the chain to prevent the motor from causing injury.