Nashville has been canceled after four seasons at ABC.

The country drama has survived its place on the bubble for the past two seasons. It looked hopeful that the show would get renewed when top notch writers Marshall Heskovitz and Ed Zwick were brought in as new showrunners earlier this season. A fifth season would have also allowed the show to make it to 100 episodes and increase its syndication potential.

Excited about new Fall Shows? Add them to your Watchlist — and find out how to sign up if you don't have one!

However, the show has struggled in ratings and a controversial anti-LGBT law in the show's home state of Tennessee may have put the nail in the coffin for the drama. Nashville stars Connie Britton and Chris Carmack were both vocal about not wanting to film in Music City in light of House Bill 1840, which gives therapists and other mental health professionals the right to refuse to treat patients whose lifestyles go against the professional's "sincerely held principals."

Nashville wasn't the only show that got the axe at ABC Thursday. The network also canceled long-running fan favorite Castle, as well as struggling series The Muppets, The Family, Marvel's Agent Carter and Galavant.

Nashville will conclude its fourth season on May 25 at 10/9c on ABC.