CONCORD, N.C. (AP) - Hendrick Motorsports and driver Kasey Kahne have agreed to part ways after six years.

The team said in a statement Monday that Kahne has been released from the final year of his contract, allowing him to begin pursing a Monster Energy Cup ride for 2018.

Team owner Rick Hendrick says Kahne is "a tremendous teammate and person, and he has been totally dedicated to our program since day one. I've always believed that he's a special talent, and I know he will thrive in the right situation. We will do everything we can to finish the season as strong as we can."

The 37-year-old Kahne will finish the season driving the No. 5 Chevrolet for Hendrick. He has six victories with Hendrick, including one at Indianapolis last month that qualified him for the playoffs.

Kahne says "finishing strong is our top priority. I look forward to what the next chapter in my career holds."