Game of Thrones has won the main prize at the Emmys for its eighth and final season.
The fantasy epic received a record 32 nominations at the Los Angeles awards but only picked up two prizes in the end.
It is the fourth time the series picked up the Outstanding Drama Series award.
Meanwhile, actor Peter Dinklage won Outstanding Supporting Actor in a Drama Series.
With Peter Dinklage's win tonight, he is now the winner in this category with the most wins for the same role. He was previously tied with Aaron Paul. #Emmy #Emmys https://t.co/ThbZARkxBx
— The Emmys (@TheEmmys) September 23, 2019
Comedy Fleabag was the big winner – pulling in four awards including Outstanding Comedy series as well as Outstanding Lead Actress in a Comedy Series and Outstanding Writing in a Comedy Series for its creator Phoebe Waller-Bridge.
Accepting the awards, she thanked her "Fleabag family" and said it was "reassuring" that a "dirty, pervy, messed-up woman can make it to the Emmys."
Accepting the best comedy award later on, she said: "This is getting ridiculous."
A huge win for Phoebe Waller-Bridge, who pulled an impressive hat trick with nominations this year for producing @KillingEve, producing @fleabag, acting in Fleabag, and writing for Fleabag. #Emmy #Emmys
— The Emmys (@TheEmmys) September 23, 2019
HBO drama Chernobyl was named best limited series and also picked up awards for directing and writing.
Game Of Thrones stars Kit Harington and Emilia Clarke missed out on acting gongs, but were on stage with co-stars including Sophie Turner and Maisie Williams to collect the show's best drama award.
Turner, who played Sansa Stark, said: "I think all of us agree how amazing the entire last season was for us. We had no idea how it would end, who would betray whom and who would end up with the prize."
Maisie Williams, who played her sister Arya Stark, said: "As much as we wish the show could have gone on forever, our time had come. And tonight is a chance to, once again, thank all of those who watched."
Today.#GameofThrones has won Outstanding Drama Series at this year's #Emmys. pic.twitter.com/YHlqvmKxLF
— Game of Thrones (@GameOfThrones) September 23, 2019
Producer and writer David Benioff thanked the author of the books that inspired the series.
"This all started in the demented mind of George RR Martin," he said.
In the other main acting prizes of the night, Bill Hader was named best lead actor in a comedy series, for his role in Barry, while Julia Garner took home the supporting actress in a drama series prize, for Ozark.
This is a love story. Congratulations to the #Fleabag cast and crew for winning 6 #Emmys Awards! 👏👏👏 pic.twitter.com/RktVEIPimT
— Fleabag (@fleabag) September 23, 2019
In the limited series categories, Ben Whishaw picked up the award for best supporting actor, for his role in A Very English Scandal.
Jharrel Jerome was named best lead actor in a limited series for When They See Us; Michelle Williams was named best lead actress for Fosse/Verdon; and Patricia Arquette was named best supporting actress for The Act.
RuPaul's Drag Race was named outstanding reality competition.