The Brookhaven Town Board has voted to tear down vacant houses in Port Jefferson Station and East Moriches if their owners do not repair them.

Town officials said the houses, on Maple Avenue in Port Jefferson Station and Paquatuck Avenue in East Moriches, were in violation of numerous town building codes and were unfit for occupancy. The Port Jefferson Station home had been occupied by squatters in 2015, has an illegal rear deck and violated state fire codes, assistant town attorney Penni McGrath said.

advertisement | advertise on newsday

The town board voted unanimously Thursday to tear down the houses unless their owners agree within about 30 days to restore the structures. The cost of razing the homes and removing demolition debris would be added to the homeowners’ property tax bills, officials said.

A person who said he represented the Moriches house owners told the town board the owners would arrange to have the home demolished.

Supervisor Edward P. Romaine said the owners of a third vacant house, on Beachfern Road in Center Moriches, also agreed to demolish their home.