The new mom dedicated the performance to her father, Keith Hudson.
The moment marked her first performance at the annual awards show in seven years, as well as her first performance since giving birth to her first child, Daisy, in August.
"She taught us how to be a firework and shine,” show host Taraji P. Henson said while introducing Perry to the stage. “You know I love when we shine, baby, shine. She's invited one of her very favorite singers to join her in a very special duet that she has created just for us."
"It asks the question, if you had one day left to live, what would you do with it? What would you do if you had nothing to lose?" Henson continued. "Please welcome Katy Perry and Darius Rucker, reimagining Katy's new song, ‘Only Love.’”
The pair performed on a dimly lit stage with 36-year-old Perry belting out the opening verse, while Rucker sat strumming his guitar before joining in.
Earlier, Perry dedicated the performance to her father, Keith Hudson.
"Tonight’s @amas performance is for my father ♥️," she captioned a cute throwback pic of the two.
Rucker, meanwhile, teased the performance on Twitter.
"I mean, my life just feels very full and whole," she said. "And you know, it's hard a little bit these first couple of days away and not being able to be there."
"But Daddy's doing a great job. Daddy has stepped in," Perry said of Bloom. "I've seen the Bjorn on him, I've seen him with the bottle, I've seen all the pictures. It's all good."
Watch the video below for more.