An early morning fire caused heavy damage to an Edgartown home and left three people with minor injuries, including two firefighters, according to officials.

Edgartown fire and police were summoned to a structure fire at 18 Pilgrim Road just after 2 a.m., according to a press release from the police department. People were reported to be trapped on the second floor.

When Edgartown fire chief Alex Schaeffer and deputy fire chief Andrew Kelly arrived on the scene, heavy fire was observed on the side with a second floor exit. The occupants were able to evacuate the house on their own through another exit with the help of neighbors, police said.

One person from the house was taken to Martha’s Vineyard Hospital with minor injuries, police said, and a firefighter was transported to the hospital with symptoms related to exhaustion. Another firefighter was treated and released at the scene.

The fire was knocked down quickly but the contents of the home appear to be a total loss, police said The cause of the fire is under investigation.

Oak Bluffs and West Tisbury fire departments also responded, and a second alarm brought response from Tisbury fire department.

According to town assessor records, the one and a half story shingle home is owned by Jason Frechette.