Yeah practice. But nothing replaces talent. Some have it some don’t. I played club chess for a few years. Fairly average grading around 1500.
We played some school teams. Young players grading tended to lag behind their improving ability as gradings were only published once a year back then I think. So every so often you would play an opponent graded below you and get thrashed effortlessly.
I got conned into a game at a friends against someone I didn’t know. Another effortless thrashing.Afterward I got told he was the Scottish junior champion. Now a FIDE Master.
To improve – practice, study a few openings, and study the end game. It’s possible to save a draw or get a win out a fairly even position in the end game when playing average or weaker players. Strong players will all be good end game players.