Actress Kaley Cuoco and her fiance Ryan Sweeting "married" in a mock impromptu ceremony on the episode of "The Ellen DeGeneres Show" that aired Thursday.

"This isn't legal, right?" professional tennis player Sweeting, 26, asked "The Big Bang Theory" star Cuoco, 27, as host DeGeneres hustled the actress up to a makeshift canopy where he stood with her head writer, Kevin A. Leman II.

advertisement | advertise on newsday

"My head writer, Kevin, over the summer became ordained; he married a couple," DeGeneres told Cuoco moments earlier, after springing the news that the show was offering them an immediate wedding ceremony.

DeGeneres loaned her own rings to the couple, who became engaged in September after three months of dating.

Cuoco and Sweeting said their "I dos" and shared a kiss after the brief ceremony.