Lukas Podolski scored in injury time for Germany to deprive Ivory Coast of victory in an international friendly.
Podolski converted a penalty in the 11th minute to put Germany ahead in Gelsenkirchen.
Then Emmanuel Eboue tied the game in the 57th.
Seydou Doumbia came off the bench in the 83rd and scored two minutes later to give Ivory Coast a 2-1 lead.
But Podolski scored two minutes into injury time in the half-empty Schalke stadium to secure a draw.
It was Germany's first match since the death of its goalkeeper Robert Enke.
Before the game, both World Cup-bound teams paid respect to Enke, who killed himself last week after battling depression for years.
Germany captain Michael Ballack, who could not play because of a knee injury, placed a No. 1 jersey with Enke's name on the bench of Germany's team.
There was a minute of silence and both teams played with black armbands.
A film featuring highlights from Enke's life was shown on the stadium's video screen before the kickoff, accompanied by the song 'You'll never walk alone'.
German fans remember goalkeeper Robert Enke who died last week
During the presentation, Ivory Coast players wore T-shirts with the picture of Enke.
Ivory Coast captain Didier Drogba, Ballack's teammate at Chelsea, also missed the game because of a rib injury and Germany got the first goal early.
Stefan Kiessling earned a penalty when he was brought down by Guy Demel and Podolski converted from the spot.
Only minutes later, Eboue chipped the ball over Tim Wiese, but hit the crossbar, before Arthur Boka cleared a header from Heiko Westermann off the line.
Piotr Trochowski hit the post late in the first half and Kiessling had a good effort parried by goalkeeper Aristides Zogbo in the 53rd.
Eboue scored a bizarre goal that left him gasping for air in pain.
Westermann, under pressure from Eboue, played the ball back to goalkeeper Manuel Neuer, whose attempt to clear it hit Eboue in the abdomen and bounced into the net.
Neuer replaced Wiese at halftime.
Doumbia scored with a good shot from the edge of the box, after a pass from Gervinho, another Ivory Coast substitute.
Podolski salvaged the draw when he collected a pass from Westermann and drove the ball past Aristides Zogbo.
"It wasn't easy to play but we tried hard and we wanted to win," Germany coach Joachim Loew said.
"We had some very good chances in the first half but we allowed some counterattacks in the second."
Bookmark with:
What are these?