Grammys: Pitbull closes show with Sofia Vergara, Robin Thicke, Travis Barker and Joe Perry

WATCH: Sofia Vergara Makes a Sexy Surprise Appearance at the GRAMMYs
WATCH: Sofia Vergara Makes a Sexy Surprise Appearance at the GRAMMYs

Pitbull brought out a number of guests to close the 2016 Grammys with an energetic, dance-filled performance of two songs: His hit "El Taxi," off his Spanish-language album Dale and his new single, "Bad Man," with Travis Barker, Joe Perry and Robin Thicke.

With the latter song just released on Sunday it would seem to be the more eagerly anticipated Grammy performance of Pitbull's two songs, but the Cuban-American rapper brought out a special guest for "El Taxi."

After the lyric in which he references Sofia Vergara, the actress herself appeared, popping up from under the stage, wearing a cardboard taxicab and taxi-driver cap, which she removed to reveal a sparkly gold outfit. Vergara and Pitbull then danced together.

See more sexy photos of Sofia Vergara at the 2016 Grammys:

Earlier, a taxi motif featured prominently as Pitbull's dancers wore yellow and black outfits with checkered detailing and the lights behind Pitbull's performance flashed yellow and black.

"El Taxi," featuring Cuban rapper Osmani Garcia, is a track off of Pitbull's Spanish language album Dale, which tied with Natalia Lafourcade's Hasta La Raiz to win the Grammy for best latin rock, urban or alternative album.

For "Bad Man," Barker, Perry and Thicke joined Pitbull onstage as the latter two vocalists walked the stage and the background lights switched to blue.

See all of the stars' looks from the 2016 Grammys:

See More: Grammys: Red Carpet Photos