In Taylor Swift's highly-anticipated documentary released Friday on Netflix, the pop singer mentions Democrat Beto O’Rourke’s narrow loss in the 2018 senate race as an inspiration for her latest song, “Only the Young.”

“The first verse I want to be all about like hearing the news,” Swift says near the end of the film. “You know, like if you were a kid and you loved Beto and thought that was the future of Texas … and it just didn’t happen. But statistically, we have what, three-to-four million people turning 18 before the next two years before the next (election)? It’s basically saying don’t lose hope.”

The song, which was released alongside the film, doesn’t mention O’Rourke by name, but it talks about lost elections and gun violence in schools. The O’Rourke connections were first reported by El Paso TV news outlet KTSM.

During the 2018 midterm elections, Swift broke her career-long silence on politics by endorsing Democratic Senate candidate Phil Bredesen of Tennessee over his opponent, former Republican Rep. Marsha Blackburn, on Instagram.

Texas Take: Get political headlines from across the state sent directly to your inbox

The documentary, “Miss Americana,” also covers Swift’s decision to go public with her political beliefs. Swift cites Blackburn’s vote against the reauthorization of the Violence Against Women Act of 1994 and opposition to LGBT causes as reasons.

Despite Swift’s denouncement, now-Sen. Blackburn became the first woman elected to the U.S. Senate from Tennessee.

Last year, Swift created a Change.org petition in support of the Equality Act, which O’Rourke had sponsored as a member of Congress. He signed Swift’s petition in July.

“I will continue to work as I’ve done throughout my career to ensure proper legal protections for everyone — regardless of their sexual orientation or gender identity,” O’Rouke wrote. “Thank you to everyone who supported this petition.”

O’Rourke’s presidential campaign ended in November 2019. His final financial report for his run was released Friday, showing $18.5 million in receipts during the election cycle.