Minnie Driver was told she wasn't "hot enough" to star in 'Good Will Hunting'.

Minnie Driver

Minnie Driver

The 46-year-old actress was nearly rejected for the part of Skylar in the 1997 movie - which also stars Ben Affleck, Matt Damon and Robin Williams - because a producer deemed her not to be attractive enough for the role.

She said: "I really can't [name names] because then I'll never work again, and I have to work because I have a mortgage.

"You know what? The producer of 'Good Will Hunting' did not think I was hot enough to be in that film, and did not want me in the film. It came from the top."

But Minnie says she has Matt, Ben and the film's director Gus Van Sant to thank for helping her secure the role.

She added: "They fought very hard for me to play that role. I am grateful to them until this day."

And despite going on to be nominated for an Oscar for her part in the movie, Minnie admits it left her feeling a bit demotivated for a while.

Speaking on Watch What Happens Live, she shared: "But I was also together enough to know that hotness is a perception, not really a point of view."

The film also served as a breakout movie for both Matt and Ben and the 'Jason Bourne' star can't believe how successful it became.

He said previously: "The thing about 'Good Will Hunting' is that we were unemployed and we weren't writing the script on a deadline either. Nobody was expecting it, so we were just these two idiots in our basement writing this thing, and now we have all of these pressures of the lives grown-ups have."