The Westerner is a 1940 American Western film directed by William Wyler and starring Gary Cooper, Walter Brennan and Doris Davenport. Written by Niven Busch, Stuart N. Lake and Jo Swerling, the film concerns a self-appointed hanging judge in Vinegaroon, Texas, who befriends a saddle tramp who opposes the judge's policy against homesteaders. The film is remembered for Walter Brennan's performance as Judge Roy Bean, for which he won his record-setting third Academy Award for Best Supporting Actor. James Basevi and Stuart N. Lake also received Academy Award nominations for Best Art Direction, Black and White and Best Story, respectively. The supporting cast features Dana Andrews, Chill Wills and Forrest Tucker.