March 26 (UPI) -- Grey's Anatomy cast members Kim Raver and Kevin McKidd have announced they are leaving the ABC medical drama after 16 and 18 seasons respectively.

"Playing Dr. Teddy Altman will always hold a dear and special place in my heart. Sixteen years ago, I had the incredible privilege of stepping into this role thanks to the vision of Shonda Rhimes and Betsy Beers," Raver wrote on Instagram Wednesday.

"Since that day, it has been a true gift to bring the iconic words of Shonda and our brilliant team of writers to life," she added. "I feel so fortunate to have worked under the brilliance of Debbie Allen, who not only mentored me but welcomed me into the Director's chair. To my amazingly talented cast-mates and our formidable, tireless crew: playing in this arena with you has been a joy, and I will carry this company in my heart always.To the fans, your unwavering devotion and support are the reason this show remains such a force. Thank you for making this set my place of magic and my home."

View this post on Instagram

A post shared by Kim Raver (@kimraver)