The One Direction singer donned a khaki jumpsuit and a pair of dark shades in a bid to look like Tom's character Maverick for the costume party, which was held at Clutch Kitchen in east London to celebrate the 30th birthday of TV presenter Laura Whitmore.
However, the 21-year-old singer wasn't the only famous face to turn up to the bash, with other stars attempting to out-do his pilot fancy dress outfit.
The birthday girl dressed up as pop sensation Madonna for the eighties-themed celebration, wearing a trendy black crop top, leather jacket, fishnet gloves and a long string of pearls.
Niall's attendance should come as no surprise as the pair have become close since his band's rise to fame, although Laura has previously denied any romance between them.
Speaking in April last year, she admitted she was sick of people asking if they were in a relationship as he is ''just a child''.
She said: ''I'd rather you actually asked me about somebody else other than Niall, to be honest. I was never seeing Niall. He's a child.
''The most embarrassing thing about that is that people thought we were together. I love Niall, he's lovely but I'm 28.''
Elsewhere at the party, model Daisy Lowe wrapped up in a baby pink faux-fur coat while Stereophonics frontman didn't make much of an effort with his outfit as he wore a casual look.
In honour of the arrival of the royal baby...
The Vanity Project reveal the truth about their unique aesthetic.
ATR hit Islington's O2 Academy tonight to fully display their importance to thrilling effect.
These artists are no-one's guilty pleasure.
Rocks was released on this day (May 3) in 1976.
Daughters in the current climate are stronger than ever following last year's You Won't Get What You Want.
Je t'aime Taylor Swift's latest video for her new single 'Me!' featuring Brendon Urie of Panic! At The Disco.
Celebrating the wonders of Jazz music.
Filmmaker Spurlock (Super Size Me) is known for his investigative wit, but there's none of...
British pop heartthrobs One Direction became a worldwide sensation when they were thrust together on...
Niall Horan, Zayn Malik, Liam Payne, Harry Styles and Louis Tomlinson may make up the...
They're the biggest boyband in the world since coming third in the seventh series of...