GREENWICH — The town was heavily battered by heavy rain and strong winds from Tropical Storm Isaias as it sprinted up the East Coast, prompting First Selectman Fred Camillo to declare a state of emergency in Greenwich by early Tuesday evening.

The state of emergency will remain in place until further notice. Work crews from Eversource and the town were expected to work through the night and into Wednesday to clear fallen trees and branches and restore power to town residents.

“There are lots of downed wires and trees all over the town, and in some places it is going cause significant delays,” Camillo said. “We will be out there with crews all day and night so we can clear the roads for our essential businesses to be up and running.”

Camillo urged residents to stay home unless it was absolutely necessary to go out. The roads should remain clear to allow the work to continue, he said.

“It’s dangerous out there in certain spots still,” Camillo said.

As of 6 p.m. Tuesday, 6,595 customers in Greenwich were without electricity, which is nearly 25 percent of the town, Eversource said.

Camillo said Eversource was responding first to “priority one and two calls” that involve lives being endangered.

“They are aware of all the spots with outages and they will get to them as soon as possible,” he said. Anyone with an outage can report it at 1-800-286-1000.

Among the most immediate priorities was clearing the damage near the Holly Hill waste management facility and restoring access for trucks to dump garbage and recycling on Wednesday, Camillo said.

The storm hit late Tuesday morning, bringing bursts of heavy rain and strong, gusty winds to Connecticut.

Damage was widespread in Greenwich, Camillo said, especially along West Putnam Avenue, North Street, Glenville Road and in the downtown area. Trees were down in front of Town Hall and the Board of Education building.

“With the amount of trees and live wires blocking and closing roadways in town, shelter in place is being recommended,” the Greenwich Police Department posted on Twitter at the height of the afternoon storm.

The Town of Greenwich activated its Emergency Operations Center at about 3 p.m. After the storm had passed through, Greenwich emergency dispatch warned on Twitter, “Trees and wires down everywhere; stay off the roads and stay away from the wires. Let the professionals do their job.”

Throughout town, high winds toppled trees and branches, posing a serious threat to drivers out on the roads.

The Greenwich Police Department alerted the public via Twitter account that most major roads north of Route 1 were “not passable” because of the trees and wires that had come down.

At one point, drivers were warned to stay away from the area of 500 W. Putnam Ave., with three lanes closed and “many trees down,” police said. A tree fell on a car at a stoplight, but all three occupants were able to get out unscathed from the badly damaged vehicle.

Greenwich firefighters extricated a motorist from a vehicle that was hit by a falling tree on North Street about 1 p.m., the firefighters union reported.

Police at mid-afternoon released a more urgent warning to residents.

“Please do not travel unless you absolutely have to,” the police department tweeted at 2:35 p.m. “The high winds are still bringing trees down. Multiple cars have been struck by falling limbs around town. Many of the (trees) are entangled with power lines. It’s not worth risking your life for.”

Camillo said he has already contacted Gov. Ned Lamont, who is a town resident, about the damage.

Declaring the state of emergency could allow the town to be eligible for reimbursement from the Federal Emergency Management Administration for storm-related costs. The town would have to apply for reimbursement, which it received for cleanup from Superstorm Sandy in 2012.

The town has been under an ongoing state of emergency since March due to the coronavirus outbreak.

This story has been updated online.