Allison Williams has bid an emotional farewell to 'Girls'.

Allison Williams

Allison Williams

The 28-year-old actress has played Marnie Michaels on the HBO comedy-drama for its entire six-season run and after filming her final scenes this week, the star took to Instagram to pay tribute to the show and its cast and crew.

She wrote: "Marnie has officially gone wherever all characters go when we stop watching them. And I couldn't feel luckier that I got to play her. @lenadunham, gave me everything. She gave me the most incredible challenges and adventures and the opportunity to know and love our GIRLS family. She also gave me her fierce friendship, wit, love, and loyalty, all while making me giggle on a constant basis.

"Sitting next to Lena while being directed by @jennikonner, it all felt completely right. Then I immediately burst into some pretty rare tears, because it hit me that I don't know what my adult life looks like without Girls. To everyone - our cast, our crew, HBO, my family - thank you. And to @juddapatow, thanks for watching a YouTube video of a 22 year-old fresh out of college and inviting her to audition for Marnie Marie Michaels. I've been grateful every single day since. #EndOfGirls #ThatsAWrapOnMarnie (sic)."

And Lena Dunham, who created the show took to her own Instagram page to praise Allison.

She wrote: "Tonight we said goodbye to Allison Williams, aka Marnie Marie Michaels, aka the most talented, hard-working, generous, tireless, self-deprecating and delicious smelling woman I have ever known.

"Have you ever met someone who got a hand injury writing Thank You notes? Neither had I until Allison came along. From the moment we met her six years ago, we knew she would give everything to this character and she did. Her bravery, sense of adventure and tenacity has made every day with her an honor.

"...Yes she's gorgeous. Yes she's funny as f**k. But you will never have a better friend and sister. We are so lucky. I love you, Al (sic)."

Lena, 30, previously revealed she wanted the show to finish after six seasons.

She explained: "It's really exciting. I started working on this show when I was 23, and I'm going to be 30 so it kind of feels right that this show kind of sandwiched my 20s and then I go off into the world."