Edgartown, town, seat of Dukes County, southeastern Massachusetts, on the eastern coast of Martha's Vineyard island; settled 1642 as Nunnepog, incorporated and renamed for Edgar, son of James II of England, in 1671. It is a summer resort and fishing center. The community was a whaling port in the 18th and 19th centuries. Population 2,204 (1980); 3,062 (1990).