A vacant Mastic home that officials said was a safety hazard and the scene of illegal drug and gang activity was demolished last week.

The Overlook Drive house had been cited for numerous violations of state building and fire prevention codes and Brookhaven Town codes, town officials said in a news release. The town board approved the demolition at an Aug. 27 meeting.

advertisement | advertise on newsday

Officials said in the release the house "was a dangerous eyesore in the neighborhood and a public safety hazard. . . . The house has also been the site of alleged drug and gang activity."

Town officials said the property's cesspool would be filled in to prevent nitrogen from leaking into the nearby Forge River watershed. Demolition and cleanup costs will be added to the property owner's tax bill, officials said.

"When I look around this neighborhood, it's plain to see that people take pride in their homes, and it's not right that they have to live with a mess like this," Supervisor Edward P. Romaine said in a statement. "We are making great strides in cleaning up neighborhoods across the town and we will continue to improve the quality of life for our residents."

Councilman Daniel Panico, who represents Mastic, said the house was "the latest in a long line of blighted properties we've demolished in the Mastic-Shirley area," which has been hit by a double-whammy of foreclosures and damage caused by superstorm Sandy in October 2012.