Shaqiri scored his first goal of the 2017–18 season in the match against Newcastle United, on 16 September, scoring the equalising goal in an eventual 1–2 defeat. On 4 November, he scored in a 2–2 draw against Leicester City. On 25 November, he scored in a 1–2 defeat to Crystal Palace. On 2 December, he scored in a 2–1 win over Swansea City. On 3 February 2018, he scored the opening goal in a 1–2 defeat to AFC Bournemouth. A week later, on 10 February, he scored in a 1–1 draw against Brighton & Hove Albion. On 24 February, Shaqiri scored for a third consecutive game in a 1–1 draw against Leicester City. In March 2018, with Stoke battling against relegation, Shaqiri courted controversy with an interview for Swiss magazine Schweizer Illustrierte in which he said there was a "lack of quality" in his Stoke teammates and that even the presence of Ronaldinho would not improve the team. On 5 May, Shaqiri scored in a 1–2 defeat to Crystal Palace, as Stoke were relegated to the Championship. He played 38 times for the club in the season and finished as top goalscorer for the club with 8 goals, also providing 7 assists.
On 13 July 2018, Liverpool signed Shaqiri on a five-year deal after triggering his £13.5 million release clause. On his debut on 12 August, in the opening match of the season against West Ham United, he came on as a late substitute in a 4–0 win. He made his first full start on 22 September, in a 3–0 win over Southampton, and received praise for his performance which earned him the BBC Sport man of the match award.
In 2018, Shaqiri was the most Googled personality in Switzerland.