It’s not that difficult, and you don’t have to do it alone!
One major challenge of all team leaders is to keep their teams motivated. A motivated team would not only give their best but also stay together longer.
I was privileged to be with highly-motivated teams and have led several ones too. But not all teams started that way.
One team that I led was particularly challenging because they were already demoralised when I took over as the team leader!