Firefighter Michael R. Davidson of Engine Company 69 died at Harlem Hospital after being pulled from the burning unoccupied building on Saint Nicholas Avenue near 148th Street.

The fire broke out around 11 p.m. Thursday in the basement of the closed St. Nick’s Jazz Pub where a movie, “Motherless Brooklyn,” was being shot. Firefighters responded to the blaze, but the flames were so intense that crews were forced to get out.

“Somehow while backing out of that building, Firefighter Davidson was separated from the rest of the unit,” Nigro said.

The fire commissioner said after a desperate search, Davidson was found. He was taken to the hospital, where he later died.

The FDNY also announced a "posthumous promotion for Michael Davidson after the firefighter was killed in the line of duty last week near a movie set.

Davidson, a 15-year veteran of the department who was with Engine Company 69, was promoted to lieutenant after being killed in a fifth-alarm fire in Harlem early Friday. The fire broke out in a building near a set where actor-director Edward Norton had been filming scenes for an upcoming movie.

Davidson had passed the lieutenant's exam in 2015 and was on the list for promotion to the rank.

“Lieutenant Davidson was a natural-born leader and dedicated member of the FDNY who died fighting and serving our city,” Nigro said in a joint statement with de Blasio. “He had all the qualities of an officer and more—his promotion is well-deserved.”

Lt. Davidson, who lived in Floral Park on Long Island, is survived by his wife Eileen and four young children.

He is also the son of retired firefighter Robert Davidson, who served the FDNY for 26 years, and the brother of firefighter Eric Davidson, an 11-year veteran with Engine Company 88 in the Bronx.

. . .Blasio said. 'His steadfast dedication to this city will not be forgotten and continues with his deserved promotion to Lieutenant in the FDNY.'"