The Good, The Bad, And The Uglys ending is famous and still so beloved for as a spaghetti Western for its final scene ushering in a new era for the genre. Director Sergio Leones Dollars trilogy began in 1964 with A Fistful of Dollars. This inexpensive Clint Eastwood vehicle was a box office hit, and 1965 saw the arrival of its first sequel, For A Few Dollars More. Although both of these movies remain well regarded critically, it was 1966s The Good, The Bad, And The Ugly that cemented Leone and Eastwoods statuses as central figures in the spaghetti Western sub-genre.
https://screenrant.com/the-good-bad-ugly-movie-ending-explained/