Ian McKellen has completed his work on Peter Jackson’s “The Hobbit” trilogy.

“Seconds ago we finished our last shot with Gandalf,” Jackson said in a post on his Facebook page on Friday from New Zealand. “The end of an incredible adventure that began in 1999. I’m feeling very sad right now.”

Jackson posted a photo of himself looking downcast next to McKellan in costume.

McKellen starred as Gandalf in “The Lord of the Rings” trilogy, which began shooting 14 years ago. McKellen is now 74.

The Hobbit: The Desolation of Smaug,” the second film in Peter’s “Hobbit” trilogy, will be released Dec. 13.  “The Hobbit: There And Back Again” had been set to open on Dec. 17, 2014.

The Hobbit: An Unexpected Journey” has grossed over $1 billion worldwide since it opened last Dec. 14.