The 35-year-old singer was first joined by Williams, when she was performing on her track "Sorry", reported Femalefirst.
Fans got extremely surprised when Beyonce's was joined by rapper Jay Z onstage for "Drunk in Love" duet.
"Give it up for my man," Beyonce screamed.
Lamar, on the other hand, sang "Freedom" with the songstress.