Who's That Girl is a 1987 film written by Andrew Smith and Ken Finkleman , and directed by James Foley . It stars Madonna and Griffin Dunne , and depicts the story of a street-smart girl who is falsely accused of murdering her boyfriend and is sent to jail. After getting released, she meets a man, who is supposed to make sure she gets on her bus back to Philadelphia, and convinces him to help her catch those responsible for her confinement. While searching for the embezzler, they fall in love with each other. After the failure of her 1986 film Shanghai Surprise , Madonna decided to sign another comedy film titled Slammer , which was later renamed to Who's That Girl . However, she had to convince both Warner Bros. and the producers of the film that she was ready for the project. Madonna enlisted her friend James Foley to direct the film. Shooting began in New York in October 1986, and continued until March 1987. Produc...