It's the end of the road for Jimmy and Gretchen.

FXX has renewed critical darling You're the Worst for a fifth and final season to air in 2018. The news comes ahead of Wednesday's season four finale of the Stephen Falk-created comedy starring Aya Cash, Chris Geere, Kether Donohue and Desmin Borges.

“Stephen Falk has been an extraordinary creative partner to work with over the past four years, and it is in that spirit that we came to the mutual decision to end You’re the Worst with its fifth season,” FX president of original programming Nick Grad said in a release announcing the news. “Stephen’s singular vision for the series has been its guiding force from the start and our decision, while difficult, will allow the series to end on its own terms and in a way most satisfying to its devoted fans. We want to thank Stephen, the cast and the crew for everything they’ve done to make You’re the Worst one of the best comedies on TV.”

Added Falk: “Making You’re The Worst has been an incredible experience and FX Networks have been dream partners. I am thankful to have the opportunity to be thoroughly judged whether or not we ‘stick the landing’ — which is a thing people say now that stupid Breaking Bad had to end so damn perfectly.”

Never a ratings breakout, You're the Worst broke out with critics in season one for its fresh take on the romantic comedy and portrayal of important subjects, including veterans and PTSD, clinical depression and abortion. Rather than being a "will they or won't they?" comedy, Falk opted to instead explore the why of it all for Jimmy (Geere) and Gretchen (Cash), two horrible people who realize they're perfectly terrible — together. The current fourth season has explored what happened between the couple after a marriage proposal gone bad in the season three finale. The duo have largely spent the season split as they try to forge a road back together.

Speaking with The Hollywood Reporter ahead of season four, Falk — who has a development deal with You're the Worst producers FX Productions — said he had already started thinking about the future of the show going potentially beyond five seasons. (The decision to wrap the series was a joint decision by FXX and Falk, according to the press release.)

"I know what next season will be in a way that I never have before," Falk told THR. "I'm very excited about it. I've been loath to name a figure, but I think seven [seasons] would feel really good. I can see next season and it feels like there's two more steps up beyond that for Jimmy and Gretchen and for the show. And I know the cast would be very up for that. That would be a fun goal. Getting to this point with season four, where hundreds of shows have come and gone since we premiered is really fun. To find ourselves at middle age and feeling still really excited and invigorated is a nice place to be."