Katie Holmes partied with one of Tom Cruise's best pals on Saturday night (24.08.13).

The 34-year-old actress was spotted drinking cocktails and dancing with her ex-husband's good friend Jamie Foxx at a Night of Legends event at the Apollo Theatre in The Hamptons.

A source told People.com that the 'Mania Days' star sat with the 45-year-old 'Django Unchained' actor at a long table in the centre of the party barn at theatre board member Ron Perelman's East Hampton estate, where they were joined by Ellen Degeneres and Penny Marshall.

The eyewitness said that Katie, who divorced Tom in June 2012 after six years of marriage and secured primary custody of their daughter, Suri, seven, began dancing alongside Jamie when Lenny Kravitz took to the stage to perform 'American Woman' with Bon Jovi and she was also seen taking a sip from the actor's cocktail.

Jamie, who previously said he owed his career to Tom after they starred in 'Collateral' together, later enjoyed a group hug with Katie and Ellen before joining Pharrell on stage for his performance and waving Katie up to the stage to join him.

Other performers including the Roots also got on the stage and began chanting: ''Go Katie, go Katie.''

The brunette beauty eventually returned to the dance floor and sang along to Robin Thicke's hit 'Blurred Lines' and Jamie's track 'Blame It (On the Alcohol)'.

Russell Simmons was overheard saying to the actress at the end of the charity bash: ''I never knew you were such a party girl.''