1987–1999: Early work and breakthrough
Law began acting in 1987 with the National Youth Music Theatre, though his interest in performing began during his childhood, having been previously cast in a Saint George and the Dragon rendition as a five-year-old. Having grown a dislike for school, Law dropped out at age 17 to pursue acting, playing various roles in the Edinburgh Fringe-awarded play The Ragged Child. One of his first major stage roles was Foxtrot Darling in Philip Ridley's The Fastest Clock in the Universe, which he performed at the Hampstead Theatre in London. Law went on to appear as Michael in the 1994 West End rendition of Jean Cocteau's tragicomedy Les Parents terribles, directed by Sean Mathias. This performance earned him a Laurence Olivier Award nomination for Outstanding Newcomer, as well as a Ian Charleson Award under the same category title. Following a title change to Indiscretions, the play was reworked and transferred to Broadway in 1995, where Law acted opposite Kathleen Turner, Roger Rees and Cynthia Nixon. This role earned him a Tony Award nomination for best supporting actor, and the Theatre World Award.
In 1989, Law received his first television role in a film based on the Beatrix Potter children's book, The Tailor of Gloucester. Following this, he took on minor roles in various British television series, including a two-year stint in the Granada TV produced ITV soap opera Families. He also appeared in the episode "Shoscombe Old Place" in ITV's Sherlock Holmes, and he played the leading role in the BFI/Channel 4 short The Crane (1992).
In 1994, Law appeared in his first major leading film role with the British crime drama Shopping, which also starred his then future wife, Sadie Frost. He later gained prominence for his role in the Oscar Wilde biopic Wilde (1997), for which he won the Evening Standard British Film Award for Most Promising Newcomer as well as a London Film Critics Circle Award for his portrayal of Lord Alfred Douglas, the glamorous young lover of Stephen Fry's Wilde. The New York Times reviewer Janet Maslin noted that Law's "voluptuous beauty and mocking, boyish petulance gives [Douglas] a rock star's presence." Other reviewers including William Gallagher also complimented Law's appearance as the character. In Andrew Niccol's science fiction film Gattaca (1997), Law took on the role of a disabled former swimming star living in a eugenics-obsessed dystopia. In Clint Eastwood's Midnight in the Garden of Good and Evil (1997), he played the role of Billy Hanson, a male prostitute killed by his partner, an art dealer portrayed by Kevin Spacey. Law also played Steven Grlscz, a vampire and an expert seducer, in The Wisdom of Crocodiles (1998).
In 1999, Law starred alongside Matt Damon, Gwyneth Paltrow, Cate Blanchett, and Philip Seymour Hoffman in the psychological thriller film The Talented Mr. Ripley, directed by Anthony Minghella. Law learned to play the saxophone for his role in the film, and his performance earned him the BAFTA Award for Best Actor in a Supporting Role, as well as nominations for the Golden Globe Award and Academy Award for Best Supporting Actor. The Guardian film critic Peter Bradshaw commented on Law giving "a very stylish and charismatic performance as the exquisite Dickie, all cruelty and caprice."
At this time, Law and his then-wife Sadie Frost were members of the Primrose Hill set, which, along with other members such as Jonny Lee Miller, led to the 1996 creation of production company Natural Nylon, which he would later leave in 2003.