 The script was written on the location of  _Raiders of the Lost Ark (1981)_ (qv) during filming breaks.  Steven Spielberg (I) (qv) dictated the story to  Melissa Mathison (qv) because she was a screenwriter and because  she was there to be with her husband at the time,  Harrison Ford (I) (qv).