A man was trapped inside a steel-reinforced concrete jewelry vault in New York City overnight after firefighters had to abandon an attempt to rescue him for safety reasons. Fortunately, the vault was on a timer and opened on its own Wednesday morning, officials said.

The fire department was called to the midtown Manhattan building on Tuesday evening after the man became trapped while trying to access his safe deposit box, Assistant Fire Chief John Sarrocco said. The building at 580 Fifth Avenue is known as the World Diamond Tower and houses several jewelry businesses. Sarrocco did not explain how the man became trapped.

MAN POSES AS MANNEQUIN IN STOREFRONT, GOES ON SHOPPING SPREE AFTER MALL CLOSES

Fire and police department personnel were in communication with the man inside the vault and could watch him on a security camera.

Fox News New York graphic

A man was freed from a Manhattan jewelry vault by an automatic lock system after failed rescue attempts left him trapped inside overnight.

Sarrocco said the fire department's rescue units have tools that would be able to break through the vault's 30-inch steel-reinforced concrete walls.

STRANDED ATOP THE EIFFEL TOWER, MAN PROPOSES TO HIS GIRLFRIEND: 'THIS IS THE MOMENT'

"The process was started to breach the wall at the vault," he said in a news conference at the scene.

After about 10 hours, Sarrocco said, the firefighters reached the steel plating and decided to hold off going any further, fearing their rescue attempts could harm the man trapped inside.

"The problem with the plating is we’d have to use our torches," he said, "which would affect the environment for that person inside the vault."

CLICK HERE TO GET THE FOX NEWS APP

The doors opened as scheduled around 7 a.m. and the man was freed unharmed, Sarrocco said.