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. Plot In 1882, the town of Vinegaroon, Texas is run by Judge Roy Bean, who calls himself "the only law west of the Pecos." Conducting trials from his saloon, Bean makes a corrupt living collecting fines and seizing property unlawfully. Those who stand up to him are usually hanged, receiving what Bean calls "suspended sentences." Cole Harden is a drifter accused of stealing a horse belonging to Chickenfoot, Bean's main sidekick. Harden's conviction by a jury composed of Bean's acolytes seems certain, and the undertaker waits eagerly for the verdict and hanging. Bean dismisses Harden's contention that he had bought the horse legally from another man. Noticing the judge's obsession with the English actress Lily Langtry, Harden claims to have known her intimately. He cons the judge into delaying the death sentence until Harden can send for a lock of the Langtry's hair, which he claims to have in El Paso. The delay is long enough for the real horse thief to appear and be killed. Despite his warped sense of justice and his corrupt nature, Bean likes Harden, considering him a kindred spirit because Harden is as bold and daring as Bean was in his youth. However, Bean tries to shoot him when Harden lends his support to the homesteaders, a group led by Jane-Ellen Mathews and her father Caliphet. The struggling homesteaders have been at odds with Bean and his cattle-rancher allies for a long time. Harden tries to appeal to the judge's better nature, and he even saves Bean from an attempted lynching. When that fails, and a corn crop is burned and Mr. Mathews killed, Harden sees no choice but to take action. He is deputized by the county sheriff and procures an arrest warrant