TV host Ellen DeGeneres and other LGBTQ stars have compiled a moving 'thank you' video to Barack Obama for everything he achieved on behalf of LGBT rights during his presidency.

Posting the video on The Ellen Show's YouTube account, the accompanying text reads: "Ellen compiled a message from the likes of Neil Patrick Harris, Evan Rachel Wood, Jesse Tyler Ferguson and many more to offer a personal message of thanks to President Obama for everything he was able to accomplish in the name of equality.

The Big Bang Theory star Jim Parsons said: "You presided over a period of time that turned out, in many ways, one of the most positive periods ever in the lives of gay Americans. How can we ever thank you?"

A visibly emotional Evan Rachel Wood, thanked him for "changing the way people thought about us and, honestly, the way I thought about myself".

Looking star Jonathan Groff said: "I couldn't believe that the future President of the United States said the word 'gay' in the first three minutes of his victory speech, and that was just the tip of the iceberg... you made what seemed truly impossible... possible."

The Obamas celebrate the Inauguration in 2009 and 2013 Show all 10 1 /10 The Obamas celebrate the Inauguration in 2009 and 2013 The Obamas celebrate the Inauguration in 2009 and 2013 WASHINGTON, DC - JANUARY 21: U.S. President Barack Obama and first lady Michelle Obama thank supporters during the Commander in Chief Inaugural Ball at the Walter E. Washington Convention Center on January 21, 2013 in Washington, DC. President Obama was sworn in for his second term earlier in the day. (Photo by Alex Wong/Getty Images) Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 U.S. President Barack Obama and first lady Michelle Obama arrive for the Inaugural Ball at the Walter Washington Convention Center January 21, 2013 in Washington, DC. President Obama started his second term by taking the Oath of Office earlier in the day during a ceremony on the West Front of the U.S. Capitol. Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 U.S. President Barack Obama and first lady Michelle Obama arrive for the Inaugural Ball at the Walter Washington Convention Center January 21, 2013 in Washington, DC. President Obama started his second term by taking the Oath of Office earlier in the day during a ceremony on the West Front of the U.S. Capitol. Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 U.S. President Barack Obama dances with first lady Michelle Obama during the Inaugural Ball January 21, 2013 at Walter E. Washington Convention Center in Washington, DC. Barack Obama was re-elected for a second term as President of the United States. Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 President Barack Obama and First Lady Michelle Obama ride in a golf cart an Inaugural ball 1/20/09 Official White House Photo by Pete Souza Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 US President Barack Obama and First Lady Michelle Obama dance during the Youth Inaugural Ball at the Hilton Washington in Washington, DC, January 20, 2009. Obama was sworn in as the 44th US president earlier in the day. AFP PHOTO / Saul LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images) AFP/Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 (L-R) US President George W. Bush, First Lady Laura Bush, Michelle Obama and president-elect Barack Obama stand outside the Diplomatic entrance of the White House on November 10, 2008 in Washington. Obama is visiting the White House at the invitation of Bush ahead of his January 20, 2009 inauguration as the next president. AFP PHOTO/Tim SLOAN (Photo credit should read TIM SLOAN/AFP/Getty Images) Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 (L-R) US President George W. Bush, First Lady Laura Bush, Michelle Obama and president-elect Barack Obama stand outside the Diplomatic entrance of the White House on November 10, 2008 in Washington. Obama is visiting the White House at the invitation of Bush ahead of his January 20, 2009 inauguration as the next president. AFP PHOTO/Tim SLOAN (Photo credit should read TIM SLOAN/AFP/Getty Images) AFP/Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 US President George W. Bush and president-elect Barack Obama make their way through the Colonnade on November 10, 208 to a meeting in the Oval Office of the White House in Washington. Obama is visiting the White House at the invitation of Bush ahead of his January 20, 2009 inauguration as the next president. AFP PHOTO/Mandel NGAN (Photo credit should read MANDEL NGAN/AFP/Getty Images) AFP/Getty Images The Obamas celebrate the Inauguration in 2009 and 2013 performs during MTV & ServiceNation: Live From The Youth Inaugural Ball at the Hilton Washington on January 20, 2009 in Washington, DC. President Barack Obama was sworn in as the 44th President of the United States today, becoming the first African-American to be elected President of the US. Getty Images

Sia said: "It's actually astonishing how much you've managed to achieve in those short eight years."

"[Thank you] for making LGBT people more visible," actor Alan Cumming said.

Ellen DeGeneres and Michelle Obama go shopping together

The video also featured stars who have actively spoken in support of LGBTQ rights. Macklemore said: "Thank you for fighting for a world where I can raise my daughter to love whoever she wants to love."

One particularly touching moment came from Portia de Rossi, who thanked Obama for allowing her to marry Ellen DeGeneres.

"Thank you, President Obama," she said. "Because of you, I got to marry the girl of my dreams."

Obama called Ellen a "role model" for Americans after she came out as a lesbian during the 90s. In a speech where she was honoured with the Presidential Medal of Freedom, he said that she "reminds us that we have more in common than we realise".

"It's easy to forget now, when we've come so far, where now marriage is equal under the law, just how much courage was required for Ellen to come out on the most public of stages almost 20 years ago," he said.

"Just how important it was, not just to the LGBT community, but for all of us to see somebody so full of kindness and light, somebody we liked so much, somebody who could be our neighbour, or our colleague, or our sister, challenge our own assumptions.

"Remind us that we have more in common than we realise. Push our country in the direction of justice. What an incredible burden that was to bear, to risk your career like that."