The Salesman has won Best Foreign Language film at this year's Oscars, winning a second award for Iranian filmmaker Asghar Farhadi who was affected by Donald Trump's Muslim ban.

The film has been in the headlines recently following the news that President Trump's ruling would keep the director Farhadi out of the US. Following its block by US courts, Farhadi decided to boycott the ceremony altogether.

Iranian-American engineer Anousheh Ansari accepted the award on behalf of Farhadi, reading out a statement written by the director.

It read: "I'm sorry I'm not with you tonight. My absence is out of respect for the people of my country and those from other six nations who have been disrespected by the inhumane law that bans entry of immigrants to the US. Dividing the world into the US and our enemies categories creates fear - a deceitful justification for aggression and war."

Oscars 2017: Best dressed on the red carpet Show all 25 1 /25 Oscars 2017: Best dressed on the red carpet Oscars 2017: Best dressed on the red carpet Hailee Steinfeld Getty Images Oscars 2017: Best dressed on the red carpet Taraji P. Henson Getty Images Oscars 2017: Best dressed on the red carpet Chrissy Teigen Getty Images Oscars 2017: Best dressed on the red carpet Ruth Negga Reuters Oscars 2017: Best dressed on the red carpet Dev Patel PA Oscars 2017: Best dressed on the red carpet Karlie Kloss Getty Images Oscars 2017: Best dressed on the red carpet Emma Roberts Getty Images Oscars 2017: Best dressed on the red carpet Riz Ahmed Oscars 2017: Best dressed on the red carpet Felicity Jones AFP/Getty Images Oscars 2017: Best dressed on the red carpet Isabelle Huppert AFP/Getty Images Oscars 2017: Best dressed on the red carpet Octavia Spencer Oscars 2017: Best dressed on the red carpet Mahershala Ali Rex Features Oscars 2017: Best dressed on the red carpet Michelle Williams Getty Images Oscars 2017: Best dressed on the red carpet Naomie Harris AFP/Getty Images Oscars 2017: Best dressed on the red carpet Scarlett Johansson Getty Images Oscars 2017: Best dressed on the red carpet Ryan Gosling Getty Images Oscars 2017: Best dressed on the red carpet Viola Davis Getty Images Oscars 2017: Best dressed on the red carpet Charlize Theron Getty Images Oscars 2017: Best dressed on the red carpet Dakota Johnson REUTERS Oscars 2017: Best dressed on the red carpet Chris Evans Oscars 2017: Best dressed on the red carpet Brie Larson Oscars 2017: Best dressed on the red carpet Jamie Dornan and Amelia Warner REUTERS Oscars 2017: Best dressed on the red carpet Sofia Boutella PA Oscars 2017: Best dressed on the red carpet Pharrell Williams Rex Features Oscars 2017: Best dressed on the red carpet Kirsten Dunst Getty Images

Farhadi's film The Salesman was nominated in the Foreign Language category alongside Land of Mine (Denmark), Toni Erdmann (Germany), A Man Called Ove (Sweden) and Tanna (Australia). The film follows a high school teacher (Shahab Hosseini) who seeks revenge against the perpetrator who attacked his wife (Taraneh Alidoosti) in their apartment.

The director made awards history in 2012 when his film A Separation became the first Iranian film to win an Oscar.