In 2018, Margaret became the first Polish artist to compete in "Melodifestivalen", a competition to select Sweden's entry for Eurovision Song Contest, with the song "In My Cabana". She said she was invited to take part in the contest by the show's producer Christer Björkman, who spotted her on Swedish television; Björkman later referred to her as "incredibly starlike". With her participation, she intended to promote her music in Sweden and present herself to a broad Swedish audience. She added that in her opinion, a Swedish artist should represent Sweden at Eurovision. Margaret performed in the second semi-final in February 2018 and advanced to the "Andra chansen" ("Second chance") round. She qualified for the final after winning her "Andra chansen" duel against Moncho, and finished in seventh place with 103 points. "In My Cabana" was released on the day of her semi-final performance; it charted at number three in Poland and at number eight in Sweden.