He went to get a picture of the sunrise -- only to find an unexpected guest already enjoying the view.

An employee at the Omni Mount Washington Resort in New Hampshire has captured an image of a black bear gazing out at the White Mountains.

Sam Geesaman, who was working an overnight shift there on June 29, says he wanted to capture a glimpse of the sunrise that day but instead saw a bear climbing up a set of stairs, looking for food in a nearby trash can.

A black bear peers over a railing on the back veranda at the Omni Mount Washington Resort just after sunrise at Mount Washington, N.H. (AP/Omni Mount Washington Resort)

“I notified other hotel staff that we had a bear on the back veranda and that I would be attempting to keep the area clear of guests so they didn't walk into a morning surprise,” Geesaman told WGME.

COURAGEOUS DOG CHASES BEAR FROM NEW JERSEY BACKYARD IN WILD VIDEO

The bear fled the area and headed toward the woods after Geesaman clapped and stomped.

New Hampshire has a history of bears invading nearby apartment complexes, campgrounds and homes.

A black bear walks along a veranda at the Omni Mount Washington Resort just after sunrise at Mount Washington, N.H., on June 29. (AP/Omni Mount Washington Resort)

CLICK HERE TO GET THE FOX NEWS APP

Just four days ago, rangers in Woodstock, New Hampshire had to suspend camping after improper food storage attracted the animals to a campsite in the White Mountain National Forest.

A year ago, food shortages were primarily responsible for the increase of bear-human conflicts and the highest total of bear killings since 2014.

Fox News’ Kira Grant and the Associated Press contributed to this report