A four-foot-long female alligator who was rescued from Brooklyn’s Prospect Park Lake in February has died, the Bronx Zoo announced Friday.

Bronx Zoo officials said the alligator died last Sunday. A necropsy revealed “chronic and severe weight loss, extreme anemia, and infections in her intestine and skin,” according to the zoo.

The alligator had spent the last two months rehabbing at the Bronx Zoo, the zoo said in a statement Friday. She had been receiving “extensive ongoing medical treatment” and “nutritional support,” the zoo said.

“Despite the intensive care, the alligator was so emaciated, debilitated, and anemic, her immune system was not as strong as it needed to be and she succumbed to those infections,” the zoo said in a statement.

The alligator, named Godzilla by rescuers, was found in Prospect Park Lake on a 37-degree day and was lethargic and possibly cold shocked, according to the Department of Parks and Recreation.

While at the zoo, veterinarians removed a bathtub stopper that she ate while illegally being kept as a pet. The stopper caused a chronic ulcer in her stomach, according to the zoo.

“This was a tragic case of animal abuse. Alligators and other wild animals do not belong in the pet trade or in people’s homes. This alligator suffered and died because its owner decided to dump her in a frigid lake, in an extremely debilitated state rather than provide her with the veterinary care that could have saved her. Wild animals are not pets,” the Bronx Zoo said in a statement.

It is illegal to release animals into city parks, according to the parks department, and officials suggest New Yorkers call 311 or locate a park ranger if an abandoned animal is identified.