Updated

A man in Pulaski, New York awoke to an unsettling surprise late last month: a boa constrictor.

The snake fell from the ceiling and landed on the man, who was not identified, the New York Department of Environmental Conservation announced Wednesday.

Matt Foster, a department agent, arrived at the home on June 29 after “a panicked caller reported that a large snake had fallen from the ceiling onto a subject sleeping in his bedroom,” the state’s Department of Environmental Conservation said in a statement.

FLORIDA DEPUTIES FIND ALLIGATOR IN BACKSEAT OF ALLEGED BURGLAR'S GETAWAY CAR

After investigating, Foster determined the red-tailed boa constrictor, estimated to be 6 feet long, escaped from its enclosure in the apartment above the man’s and somehow managed to enter the ceiling.

The agency says the snake fell from the ceiling of the downstairs apartment, where it landed on a man sleeping in bed.

OHIO FLOODING CAUSED BY TURTLE STUCK IN DRAIN; COPS RESCUE ‘HAPPY’ REPTILE

The man wasn't injured.

The snake, which the department said is legal to keep as a pet in New York, has been returned to its owner.

The Associated Press contributed to this report.