Management is based on controlling a group to accomplish tasks to achieve goals.
Leadership is more subtle, relying on a person’s ability to influence and motivate, and enable workmates to achieve organisational success.
What separates managers from leaders is their ability to inspire and influence, not relying on the power and control a manager has. “A leader is someone who influences from the back of the line” is one definition.