Gareth Bale proved Wales’ saviour as their first match at a World Cup for 64 years ended in a 1-1 draw against the United States.
Timothy Weah put the Americans ahead with a clinical strike in the 36th minute of a first half that they dominated from start to finish.
Wales seemed to have no answers until the half-time introduction of Kieffer Moore.
But time was fast running out when Bale equalised eight minutes from the end, converting his 41st Wales goal from the penalty spot after Tim Ream went right through the back of him.
It was Wales’ first goal at a World Cup since Terry Medwin scored against Hungary in 1958 and keep them very much in the race for a last-16 place.
Iran, beaten 6-2 by England earlier in the day, will be their next opponents on Friday.
Wales’ last game at a World Cup was on June 19, 1958 when a 17-year-old Pele secured a 1-0 quarter-final victory for Brazil.
With so many cruel qualification near-misses since then, Wales supporters, of whom around 3,000 were present at the Ahmad bin Ali Stadium in Doha, wondered whether they would ever see their country play at a World Cup.
Bale had been prevented from wearing the rainbow-coloured anti-discrimination armband amid fears of sporting sanctions.
Instead Bale wore FIFA’s ‘No discrimination’ armband – which is not rainbow coloured – as Wales began their campaign against the second-youngest team in the tournament, and one led by Leeds’ 23-year-old midfielder Tyler Adams.
The Wales captain made his 109th appearance to join Chris Gunter, who was among the substitutes, as his country’s most-capped men’s player.
Wales were without Joe Allen, a survivor of their Euro 2016 and Euro 2020 teams, and a vital element of the current side under Robert Page.
Allen’s hamstring injury suffered in September had not healed in time for him to feature.
Ethan Ampadu was pushed into a more advanced role as Chris Mepham came into a three-man central defence.
Harry Wilson replaced Moore in the other change from the side that had secured Wales’ World Cup place by beating Ukraine in June’s play-off final.
There were shades of Bordeaux at Euro 2016 when Ben Davies made a dramatic goal-line clearance in the opening minutes against Slovakia.
This time the Wales goal had a double escape in the ninth minute as Joe Rodon headed Weah’s cross from point-blank range towards his own goal.
The ball hit a startled Wayne Hennessey and, after the Americans had won back possession, Josh Sargent headed Antonee Robinson’s cross against the outside of a post.
Bookings for Sergino Dest and Weston McKennie, both for crude challenges on Neco Williams, threatened to disrupt the United States’ rhythm but Wales could not manoeuvre their way through American lines.
Ampadu tried his luck from 25 yards, but it was off-target and the United States probed relentlessly before breaking the deadlock.
Christian Pulisic scampered free towards the heart of the Wales defence and timed his pass perfectly.
Weah finished in a clinical fashion with the outside of the foot, and his father George, a former FIFA World Player of the Year and Ballon d’Or winner, would have approved.
Welsh frustration was summed up by Bale being booked for felling Yunus Musah, and another caution for Mepham in the final seconds brought a horror first half for Wales to a close.
Wales sent on Moore at half-time to provide an attacking focal point and withdrew Dan James.
The move allowed Wales to play in the Americans’ half, something they had singularly failed to do in the opening 45 minutes, and finally create a couple of chances.
Davies saw his diving header tipped over by Matt Turner and Moore directed Wilson’s corner over the bar when a slighter touch may have proved decisive.
But Bale, as he has so often done in the past, stepped up just when he was needed to send the Wales fans into ecstasy.