John Wayne's second to last Western movie was "The Shootist" (1976).
While he did star in "The Train Robber" (1973), "The Shootist" was his penultimate Western film before his final Western, "Cahill U.S. Marshal" (1973), which was released earlier that same year.