Jennifer Lopez and Marc Anthony got back together — for Hillary Clinton!

The friendly exes headlined a free concert for the presidential candidate in Miami on Saturday night, and the Puerto Rican stars were all smiles as they hugged and laughed with each other on stage.

MORE: Casper Smart Cheated on Jennifer Lopez — "He's Begging to Come Back!"

"Thank you Florida for coming out tonight… it was amazing!!" Jennifer wrote on Instagram after the show. "#gohillary #strongertogether #govote #lovetrumpshate #Latinos #letsgetloud."

jennifer lopez marc anthony getty

Their performance comes just a few weeks after the couple, who are parents to eight-year-old twins Max and Emme, announced they would be working together for Jennifer's second Spanish-language album.

"She has had enormous accomplishments in her career and has been representing our culture all over the world from day one. Her artistry, professionalism and passion for music are just some of the many attributes that have earned her a unique place in the entertainment world that very few people have been able to obtain," Marc said in a statement. "I am looking forward to our creative collaboration and to be part of continuing her musical legacy."

For more photos of JLo and Marc on stage together, check out the gallery below!