“Goya’s Ghosts is a 2006 Spanish-American film, directed by Miloš Forman, and written by him and Jean-Claude Carrière. The film stars Natalie Portman, Javier Bardem and Stellan Skarsgård, and was filmed on location in Spain during late 2005. The film was written, produced, and performed in English although it is a Spanish production.
Although the historical setting of the film is authentic, the story about Goya trying to defend a model is fictional, as are the characters Brother Lorenzo and the Bilbatúa family…”
From the Wikipedia article on the movie, linked here.