Discovery Family Channel has set a 90-minute final episode, along with a behind-the-scenes look at the making of the show.

My Little Pony: Friendship Is Magic is hanging up its reins in a big way.

Discovery Family Channel has set a special primetime event to celebrate the show, which is coming to an end after nine years and 221 episodes.

The series finale will air as a 90-minute "supersized" episode at 8 p.m. Saturday, Oct. 12. In addition, the cable network will premiere an in-depth behind-the-scenes look at the making of the series, My Little Pony: Friendship Is Magic – A Decade of Pony, at 5 p.m. Friday, Oct. 11.

The final episodes of the series, produced by Allspark Animation, will also stream live and on demand on Discovery Family GO, the network's TV Everywhere app.

Additionally, My Little Pony fans can watch the series from the beginning during what is being called a Pony Palooza programming takeover, starting at 6 a.m. Sunday, Oct. 6. It will run all week long during the day, leading up to the final episode.

My Little Pony: Friendship Is Magic, which debuted in 2010, follows the magical Princess Twilight Sparkle and her trusted dragon assistant Spike, who live in Ponyville in the enchanted land of Equestria, along with her colorful pony friends — honest Applejack, generous Rarity, kind Fluttershy, loyal Rainbow Dash and fun-loving Pinkie Pie. Together, they teach one another valuable lessons about the most powerful magic of all — the magic of friendship.

The series finale special will find the "Mane Six" working to save the kingdom as they fight a villainous alliance that unleashes their unified might on Equestria. Then, years later in the future, Princess Twilight is visited by a student with a friendship problem. As she attempts to solve it, she looks back on the times she and the Mane Six spent together.

Meanwhile, the behind-the-scenes special will feature the show's creators, animators and voice actors behind sharing favorite memories from the past nine seasons. The special also will take viewers into the recording studio to see how an episode is made, along with an historical overview of the brand and interviews with Mane Six castmembers, creator Lauren Faust and others.

My Little Pony: Friendship Is Magic is produced by Allspark Animation for Discovery Family. Stephen Davis is the executive producer for Allspark.

Watch a sneak peek at My Little Pony: Friendship Is Magic — A Decade of Pony below.