Alvaro Morata scored a stoppage-time winner as Juventus overcame a scare against Ferencvaros to qualify for the Champions League knockout stages.
The Hungarian champions took a deserved lead when Myrto Uzuni got across his marker and poked home from nine yards.
Cristiano Ronaldo scored his 749th career goal as his left-foot drive from 20 yards found the bottom corner.
Watch the Highlight below: