NEW YORK — A fire at a Staten Island dockyard sparked a massive explosion that left 16 people — including 13 firefighters and two emergency medics — hospitalized on Friday, according to the FDNY.

Just more than 50 minutes later — well after the inferno at the Richmond Terrace dockyard near Andros Ave. had risen to a two-alarm fire — the building was suddenly rocked by an explosion that fire officials described as “major.”

One civilian and two firefighters suffered serious injuries. Two firefighters suffered moderate injuries, while nine firefighters and two medics received minor injuries. All injured parties were transported to local hospitals.

The firefighting operation remained ongoing late Friday afternoon.