Warning: Spoilers ahead about a key moment in "Gravity."

One of the most important scenes in "Gravity" was written by none other than the film's star, George Clooney.

In an interview with Vulture, "Gravity" director Alfonso Cuaron revealed that Clooney was responsible for a key moment in the film, when his deceased astronaut, Matt Kowalski, comes to Sandra Bullock's main character, Ryan Stone, in a dream.

"We were struggling with rewrites, we'd stripped everything, a lot of the dialogue; we knew that anything that was going to be said, it was going to have a lot of weight. There was one scene we were doing over and over and over, and George overheard that we were dealing with that," Cuaron recalled. "And then one night I receive an e-mail from him, saying, I heard you were struggling with this. I took a shot with the scene, Read it. Throw it out. And we ended up using it. This was exactly what we needed."

The moment, which leads into a sequence where Stone, now awake, discusses her daughter in a prayer said to Kowalski, is one of the most controversial in "Gravity," a fact made clear by some comments on the Vulture piece.

"So he admits that the weakest scene in the movie came from Clooney?" noted one commenter. "That Clooney's character re-appearing was something Clooney re-wrote himself? That scene was the only thing, literally the only thing, that kept the movie from being essentially perfect in my eyes."

For much more from Cuaron, hit Vulture.

Loading Slideshow...
  • The Peggy Siegal Company and Warner Brothers Pictures Hosts a Special Lunch Honoring "GRAVITY"

    This image released by Starpix shows Sandra Bullock, left, and George Clooney at luncheon honoring the film "Gravity," and hosted by The Peggy Siegal Company and Warner Brothers Pictures at The Explorers Club, Wednesday, Oct. 2, 2013 in New York. (AP Photo/Starpix, Dave Allocca) -PICTURED: Sandra Bullock and George Clooney -PHOTO by: Dave Allocca/Startraksphoto.com -File name: DA560447.JPG -Location: The Explorers Club Editorial - Rights Managed Image - Please contact www.startraksphoto.com for licensing fee Startraks Photo New York, NY For licensing please call 212-414-9464 or email sales@startraksphoto.com

  • George Clooney, Sandra Bullock

    Actors George Clooney and Sandra Bullock attend the premiere of "Gravity" at the AMC Lincoln Square Theaters on Tuesday, Oct. 1, 2013, in New York. (Photo by Evan Agostini/Invision/AP)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Producer David Heyman attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R) Director Alfonso Cuaron, Sandra Bullock and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actor George Clooney attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R) Director Alfonso Cuaron, Sandra Bullock and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actor George Clooney attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R)The Academy Of Motion Picture Arts And Sciences New York Events Director Patrick Harrison, Alfonso Cuaron, Sandra Bullock and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R) New York Events Director of the The Academy Of Motion Picture Arts And Sciences Patrick Harrison, Jonas Cuaron, George Clooney, Sandra Bullock, Alfonso Cuaron and David Heyman attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R) Director Alfonso Cuaron, Sandra Bullock, George Clooney, Jonas Cuaron and David Heyman attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actress Sandra Bullock attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: (L-R) Director Alfonso Cuaron, Sandra Bullock and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actress Sandra Bullock attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actor George Clooney attends an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • The Academy Of Motion Picture Arts And Sciences Hosts An Official Academy Members Screening Of "Gravity"

    NEW YORK, NY - OCTOBER 02: Actors Sandra Bullock (L) and George Clooney attend an official screening of 'Gravity' for Academy members hosted by The Academy of Motion Picture Arts and Sciences on October 2, 2013 in New York City. (Photo by Brad Barket/Getty Images for Academy of Motion Picture Arts and Sciences)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: Sandra Bullock arrives at the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: Sandra Bullock attends at the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: Sandra Bullock attends at the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: Sandra Bullock attends at the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: Sandra Bullock attends at the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)

  • "Gravity" New York Premiere - Outside Arrivals

    NEW YORK, NY - OCTOBER 01: George Clooney and Sandra Bullock attends the 'Gravity' premiere at AMC Lincoln Square Theater on October 1, 2013 in New York City. (Photo by Dave Kotinsky/Getty Images)