Keegan Allen Says Goodbye to 'Pretty Little Liars' After Last Day On Set -- See the Emotional Posts!

This video is unavailable because we were unable to load a message from our sponsors.

If you are using ad-blocking software, please disable it and reload the page.

That's a wrap for Keegan Allen!

The 27-year-old actor is the latest main cast member to say goodbye to Pretty Little Liars, filming his final scenes for the show on Tuesday.

WATCH: EXCLUSIVE: Troian Bellisario Dishes on Spencer's Fate and What to Expect From The Final Episodes of 'Pretty Little Liars'

Allen, who has been on the show since its first season, couldn't help but get emotional bidding farewell to his co-stars -- and on-screen love Troian Bellisario in particular.

"I absolutely love you Troian Bellisario," Allen captioned an Instagram snap of the actress playing guitar. "And as our characters drift off into space and away from our control, I remain grateful I could inhabit their existence with you right there to ground and protect me. I will miss these subtle moments and quick, brief glimpses of you and this whole surreal experience."

RELATED: ‘Pretty Little Liars’ Star Troian Bellisario Details Her Final Days Of Filming: ‘I’m Allowed to Be My Silliest on Set’

Bellisario responded to Allen's heartfelt message with one of her own on Tuesday.

"There are not words that I can write (here) that could express the gratitude I have for walking next to this man for 7 years," she wrote. "@keeoone you know how I feel about you. You know what this part of my life means to me, you know all of the darkness and the light that we have shared over these years, the insane pants pissing laughter and now the heaving and hiccuping sobs that will live in my heart forever. Even if Spencer and Toby only exist in Rosewood you will always have me. Love you friend. Thank you."

WATCH: Simone Biles Fulfills Her Ultimate Dream of Visiting the 'Pretty Little Liars' Set

And, of course, there were many more posts to follow.

WATCH: 'Pretty Little Liars' Is Officially Ending After Season 7: 'We're Saying Goodbye'

ET caught up with Allen's co-star, Lucy Hale, on Monday, where she assured fans that while they're sad to say goodbye, the PLL season finale is full of "happy moments."

"There will be happy moments. It is in the nature of our show," she said. "Things can't go perfectly well. But there are happy moments. You will smile, you will cry."

Season seven of Pretty Little Liars returns to Freeform in April 2017, and as announced on Wednesday, the series finale will be followed by an hourlong after-show with stars Bellisario, Hale, Ashley Benson, Shay Mitchell, Sasha Pieterse and executive producer I. Marlene King.

See more on what Hale had to say about the big finale in the video below.