Barry Lyndon is a 1975 epic historical drama and black comedy film written, directed, and produced by Stanley Kubrick, based on the 1844 novel The Luck of Barry Lyndon by William Makepeace Thackeray. Narrated by Michael Hordern, and starring Ryan O'Neal, Marisa Berenson, Patrick Magee, Leonard Rossiter and Hardy Krüger, the film recounts the early exploits and later unravelling of an 18th-century Anglo-Irish rogue and gold digger who marries a rich widow to climb the social ladder and assume her late husband's aristocratic position.
https://en.wikipedia.org/wiki/Barry_Lyndon