Superproducer Pharrell Williams turned 40 in style on Friday (05Apr13) by hosting a star-studded bash in Miami, Florida.

The N.E.R.D star took over Miami Beach's Fontainebleau Hotel's Liv nightclub to celebrate reaching the milestone, and invited a raft of famous pals, including Miley Cyrus, who has been recording new material with the producer, Jennifer Hudson and rapper Lil Wayne.

Williams later took to to thank his friends and fans for their birthday messages, writing, "So thankful for the birthday wishes, last night's party and all the artists who've ever allowed me to create music for them."