Last updated on .From the section Football

Robert Lewandowski's double put Poland second in Group D going into the final round of games

Scotland's hopes of reaching Euro 2016 ended as Poland equalised with the final kick of the match at Hampden.

Robert Lewandowski scrambled the ball over the line as the hosts failed to clear a stoppage-time free-kick.

It had appeared Scotland's faint hopes of qualification were still alive as superb goals by Matt Ritchie and Steven Fletcher put them in front.

But Lewandowski, who had silenced the home crowd with an early opener, repeated that feat in the last seconds.

What it means

A point would only have been good enough for Scotland had the Republic of Ireland lost at home to Germany.

But Martin O'Neill's side beat the world champions 1-0 in Dublin to consign Gordon Strachan's men to fourth place in Group D.

It means the match against bottom side Gibraltar in Portugal on Sunday is a dead rubber.

Man of the match - lethal Lewandowski

Robert Lewandowski (far right) has netted a dozen goals in Group D

Scotland defended stoutly for much of the game but lapses at the outset and the end allowed the deadly Lewandowski to punish them.

With 12 goals in his last four club games and 10 already to his credit in this qualifying campaign, the Bayern Munich striker needed just over two minutes to add to that tally, beating David Marshall at his near post after peeling off the shoulder of Russell Martin.

He kept Martin and Grant Hanley occupied throughout, though the defensive pair largely kept him quiet.

That was until the final act of the match as Kamil Grosicki's deflected free-kick rebounded off the post for Lewandowski to smuggle it into the net.

Resilient Scots

It was a cruel, if rather typical, end to the game for Scotland, who had done themselves great credit in coming from behind to lead.

Bournemouth winger Ritchie's ferocious drive just before half-time gave them an impetus largely lacking in the first half.

And Fletcher's beautifully taken curling finish looked like being enough to win - until Lewandowski's late intervention.

Matt Ritchie levelled for Scotland with his second international goal

Where now?

After Sunday's meaningless game in Gibraltar, Strachan will have to decide whether he sees a future for himself as the national manager.

The Scottish Football Association has already stated its desire to keep him in the post.

Although there have been some poor performances and results in recent months, the consensus is that Scotland are improving under the 58-year-old.

When asked about his future after the game, he said: "The players are the priority at the moment. To talk about me is all wrong. I will leave that to other people.

"I have people in this building hurting and I need to look after them."

Gordon Strachan's contract expires after Sunday's match against Gibraltar

The stats you need to know

Robert Lewandowski has scored more goals in Euro 2016 qualifying than 29 of the participating countries

Scotland have never beaten Poland in Glasgow

The Scots have only won one competitive game in 2015 - against Sunday's opponents Gibraltar in March

How the night unfolded 19:49 BST: Robert Lewandowski puts Poland ahead in Glasgow, before the Republic of Ireland had even kicked off against Germany. 1. Germany 20pts 2. Poland 20pts 3. Republic 16pts 4. Scotland 11pts 20:08 BST: Mesut Ozil has a goal in Dublin disallowed for offside as the Republic struggle to contain Germany. 1. Germany 20pts 2. Poland 20pts 3. Republic 16pts 4. Scotland 11pts 20:32 BST: Matt Ritchie equalises for Scotland with a stunning goal. 1. Germany 20pts 2. Poland 18pts 3. Republic 16pts 4. Scotland 12pts 21:03 BST: Steven Fletcher puts Scotland ahead for the first time with another brilliant goal as they close in on third place. 1. Germany 20pts 2. Poland 17pts 3. Republic 16pts 4. Scotland 14pts 21:19 BST: Shane Long stuns Germany with a goal to put Republic of Ireland ahead - and into the top two. 1. Germany 19pts 2. Republic 18pts 3. Poland 17pts 4. Scotland 14pts 21:35 BST: With the last kick of the game, Robert Lewandowski scrambles in a dramatic equaliser for Poland - eliminating Scotland. 1. Germany 19pts 2. Poland 18pts 3. Republic 18pts 4. Scotland 12pts