It ended Ali's promising 42-run sixth-wicket stand with Jonny Bairstow and exposed England's lower order with the total 155-6.
First, the wicket. England, five down at lunch after the loss of Joe Root for yet another unconverted half-century, were suddenly rebuilding through Moeen and Jonny Bairstow. "Obviously disappointed with myself that I got out in that fashion.
It's not been easy but today was a day where I actually felt okay and I just didn't bowl that well".
The 32-year-old's golden run continued a short time later when he was the only person in the stadium to hear the tiny nick Stuart Broad got off Mitchell Starc.
The all-rounder was on 40 when third umpire Chris Gaffney adjudged that no part of his foot was behind the line as wicketkeeper Tim Paine whipped off the bails but England fans at the Gabba and on social media have questioned the decision - highlighting the varying thickness of the line and querying whether it was straight. It left Australia with a target of 170 to win, one they were well on their way to reaching by the close. Tomorrow we're just going to have to try and get a few wickets. "Then we had them at 70 for four but we couldn't take the next wicket".
"We got in and never really went on to get that score that we needed". When you come to the Gabba, you have to have guys who get hundreds if you're going to have any chance of winning.
But in departing to the very next ball, his 104th, after reaching his half-century - lbw across his stumps to pace as in the first innings - he had not done almost enough.
BBC cricket correspondent Jonathan Agnew said: "I don't think I've ever seen a tighter one than that". In the first couple of days we played quite well. "In the first innings I couldn't grip the ball that much, today was better but I was rubbish." he told Test Match Special.
Lyon, who has picked up six wickets in the match, has out-bowled Moeen during the Gabba Test. England's off-spinner has been hampered by a ripped spinning finger but admitted that he didn't bowl well on the fourth evening when his four overs cost 23 runs. Australia began tepidly and Root used his typically larcenous running to steal singles, turn ones into twos and cheer the England supporters in the crowd.
Paine went up like he'd won the lottery, and his captain Steve Smith immediately backed him in for a genius review.
"We feel Australia are a good side", he said. We know we have to compete very well in the next four games.
- CBI helping Shivarj Singh Chouhan, acting as govt's 'puppet' in Vyapam scam
- France win doubles move 2-1 ahead in Davis Cup final
- British Royal family issues official statement on Prince Harry and Meghan's engagement
- Falcons' Devonta Freeman (concussion) is out for Week 12
- Jose Mourinho admits to problem over Man Utd ace Paul Pogba
- Israeli Health Minister Litzman resigns over Shabbat train work
- Day charges ahead at Australian Open
- Trump continues to implicitly endorse alleged sex molester Roy Moore
- Newlyweds Sagarika Ghatge and Zaheer Khan hosted a 'dancing night' for friends
- At least 22 injured in Tenerife dancefloor collapse