Kai Havertz was on the scoresheet as Germany recovered from a defeat by France to claim a 4-2 victory over Portugal at UEFA Euro 2020.
After Raphael Guerreiro's own goal had put Germany ahead, Havertz got his fourth goal for his country in eight matches to make it 3-1.
Germany extended their lead before Jota pulled a goal back but Portugal could not complete the comeback.
In the other tie in Group F, France came from behind to draw 1-1 with Hungary.
Hugo Lloris's quickly taken punt allowed Kylian Mbappe to break and set up Antoine Griezmann to equalise on 66 minutes.