HBO has released a new, full-length trailer for Silicon Valley season 6. This is set to be the final season of the tech-based comedy, which has been a reliable hit for the premium cable network over the last handful of years. But all good things must come to an end. Such is the case for the Pied Piper gang who, as we can see based on this trailer, will have their hands full as they try to bring things to a close in the final batch of episodes.

The trailer kicks off with typical shenanigans between Richard (Thomas Middleditch), Gilfoyle (Martin Star) and Dinesh (Kumail Nanjiani) before we get to the larger stakes at play here for the final season. As we see, Richard is testifying before a government committee about building his new, better internet, which became the big play last season. Naturally, things get complicated. New investors are thrown into the mix. Old friendships are tested and, once again, Gavin Belson (Matt Ross) crosses paths with Richard in the ongoing battle between Hooli and Pied Piper.

RELATED: Silicon Valley Season 6 Trailer Arrives, October Premiere Date Announced

One of the big kickers here is that things seem to get so out of hand that prison becomes an option for the gang. The whole thing concludes with a rather satisfying bit of social commentary from Russ Hanneman, who is starting his own festival, "RussFest," which looks to be a riff on the disaster that was Fyre Fest. While that may not be at the forefront of this final run of episodes, it should make for an amusing little sidequest, based on what we're seeing here. Plus, it gives us an opportunity to have some more interactions with Chris Diamantopoulos' Russ, who has been a big, entertaining part of the show.

Silicon Valley debuted in 2014 and has slowly found a loyal audience over those years. The acclaimed series was created by Mike Judge (King of the Hill) and has gone on to win several Emmys and other accolades over its run. It was announced back in May by HBO and the creators that the upcoming season would be its last. While it's always good to end something before it winds up overstaying its welcome, this is yet another premium show that HBO must say goodbye to at a time when such content is more important than ever.

Earlier this year, Game of Thrones concluded its run as well, which was a big blow. On the comedy side, Dwayne Johnson's Ballers recently wrapped up as well following a five-season run. Watchmen debuted to strong ratings with its first episode, but that will be a one-and-done thing. Point being, the network will have to start filling that void somehow. The return of Westworld next year may help, but the comedy department will be lacking, that much is certain. Silicon Valley season 6 will consist of seven episodes and is set to debut on October 27 on HBO. Be sure to check out the new trailer for yourself.