The Modern Family beauty and Magic Mike hunk tied the knot at the luxury The Breakers resort in West Palm Beach, Florida in front of nearly 400 friends and family, and following the ceremony, the couple was treated to a superstar performance by the rapper.
Pitbull performed his hit songs, including Fireball and Give Me Everything (Tonight), as Sofia and other revellers danced alongside him.
The Colombian actress also took the dancefloor earlier in the evening with her new husband, as they had their first dance as man and wife to the strains of standard The Way You Look Tonight.
The big wedding was a star-studded affair, with many of Sofia's Modern Family cast members in attendance, as well as Reese Witherspoon, Channing Tatum and Jenna Dewan Tatum, Anna Paquin and Stephen Moyer, Arnold Schwarzenegger, Harvey Weinstein and his fashion designer wife Georgina Chapman.
This is Sofia's second marriage - she wed high school sweetheart, Joe, when she was 18, but they split three years later. They have a son together, Manolo, who walked his mum down the aisle on Sunday.