Warning: Spoilers ahead if you haven't seen Thursday's “Grey’s Anatomy.”

Mainer Patrick Dempsey's run on “Grey’s Anatomy” has come to an end after playing Dr. Derek Shepherd for more than 10 seasons.

The character known as "McDreamy" was killed off the show Thursday.

Shepherd stopped to assist four people who suffered injuries in a car accident. After the victims were taken to the hospital, a vehicle came by and collided with Shepherd's car.

Shepherd's wife Meredith Grey later decided to take him off life support.

The video above pays tribute to Shepherd and recaps his relationship with Grey.

The 49 year old Dempsey is one of Maine's most well-known actors. A native of Lewiston, Dempsey attended both Buckfield High School and St. Dominic Regional High School in Auburn.

More From WQCB Brewer Maine