Britain had, I believe four ‘Afghan Wars’. This is when they were the most powerful nation on earth. Britain left. The USSR had an Afghan war when it was the second most powerful nation on earth. They left. We’re the world’s superpower. We’ve been in Afghanistan for 19 years. Sooner or later we’re going to leave too.
It appears that the Afghans can’t abide being taken over by world powers. They just can stand it. And sooner or later, they win.