The Chinese doctor who tried to issue the first warnings about the deadly coronavirus in Wuhan — only to be reprimanded and silenced by police — has died of the illness, his hospital said early Friday.

The death of 34-year-old Li Wenliang was announced by Wuhan Central Hospital officials, who said on a Chinese social-media platform that they “deeply mourn his passing.”

“In the fight against the pneumonia epidemic of the new coronavirus infection, our hospital’s ophthalmologist Li Wenliang was unfortunately infected,” the hospital said on its official Weibo account.

“He passed away after all the efforts we’ve taken to resuscitate him.”

The hospital, located in the city at the center of the coronavirus outbreak, had initially said Li was fighting for his life — despite reports that he had died — but eventually confirmed he had passed away.

He leaves a pregnant wife and a young child, according to The Washington Post.

On Dec. 30, Li sent out a warning over the WeChat messaging app advising fellow medical-school grads to wear protective clothing to avoid infection after several patients from a local seafood market exhibited symptoms similar to SARS.

He was one of eight whistleblowers who tried to sound an early alarm about the new virus — which has killed more than 560 people and infected more than 28,000 — only to be denounced by authorities for “rumormongering.”

He was summoned to the Public Security Bureau and required to sign a letter in which he professed to have made “false comments” that had “severely disturbed the social order.”

Li wrote on Weibo that he had started showing symptoms of coronavirus in early January.

He said he developed a fever on Jan. 11 after unwittingly treating a patient infected with the virus.

He was hospitalized two days later, and his condition deteriorated so much that he was admitted to the intensive-care unit and given oxygen support.

He was diagnosed with the virus on Jan. 30, and local authorities later apologized to the virus-stricken physician.

Last week, China’s Supreme People’s Court slammed Wuhan police for punishing alleged “rumormongers” in the lead-up to the outbreak.

“It might have been a fortunate thing for containing the new coronavirus if the public had listened to this ‘rumor’ at the time,” the court said on Jan. 28.

With Post wires