<Table> <Tr> <Th_colspan="2"> Boston, Massachusetts </Th> </Tr> <Tr> <Td_colspan="2"> State capital </Td> </Tr> <Tr> <Td_colspan="2"> City of Boston </Td> </Tr> <Tr> <Td_colspan="2"> <Ul> <Li> Clockwise from top: Back Bay skyline, Fenway Park, Christian Science Center, Boston Common, the Financial District, and the Massachusetts State House </Li> </Ul> </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> Flag </Td> <Td> Seal </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="2"> Nickname (s): See Boston nicknames </Td> </Tr> <Tr> <Td_colspan="2"> Motto (s): Sicut patribus sit Deus nobis (Latin) "As God was with our fathers, so may He be with us" </Td> </Tr> <Tr> <Td_colspan="2"> Location in Suffolk County and the Commonwealth of Massachusetts . </Td> </Tr> <Tr> <Td_colspan="2"> Boston Location in the United States </Td> </Tr> <Tr> <Td_colspan="2"> Coordinates: 42 ° 21 ′ 29" N 71 ° 03 ′ 49" W ﻿ / ﻿ 42.35806 ° N 71.06361 ° W ﻿ / 42.35806; - 71.06361 Coordinates: 42 ° 21 ′ 29" N 71 ° 03 ′ 49" W ﻿ / ﻿ 42.35806 ° N 71.06361 ° W ﻿ / 42.35806; - 71.06361 </Td> </Tr> <Tr> <Th> Country </Th> <Td> United States </Td> </Tr> <Tr> <Th> State </Th> <Td> Massachusetts </Td> </Tr> <Tr> <Th> County </Th> <Td> Suffolk </Td> </Tr> <Tr> <Th> Historic countries </Th> <Td> England Great Britain </Td> </Tr> <Tr> <Th> Historic colonies </Th> <Td> Massachusetts Bay Colony in the Province of Massachusetts Bay </Td> </Tr> <Tr> <Th> Settled (town) </Th> <Td> September 7, 1630 (date of naming, Old Style) </Td> </Tr> <Tr> <Th> Incorporated (city) </Th> <Td> March 4, 1822 </Td> </Tr> <Tr> <Th> Named for </Th> <Td> Boston, Lincolnshire </Td> </Tr> <Tr> <Th_colspan="2"> Government </Th> </Tr> <Tr> <Th> Type </Th> <Td> Strong mayor / Council </Td> </Tr> <Tr> <Th> Mayor </Th> <Td> Marty Walsh (D) </Td> </Tr> <Tr> <Th> Council </Th> <Td> Boston City Council </Td> </Tr> <Tr> <Th_colspan="2"> Area </Th> </Tr> <Tr> <Th> State capital </Th> <Td> 89.63 sq mi (232.14 km) </Td> </Tr> <Tr> <Th> Land </Th> <Td> 48.42 sq mi (125.41 km) </Td> </Tr> <Tr> <Th> Water </Th> <Td> 41.21 sq mi (106.73 km) </Td> </Tr> <Tr> <Th> Urban </Th> <Td> 1,770 sq mi (4,600 km) </Td> </Tr> <Tr> <Th> Metro </Th> <Td> 4,500 sq mi (11,700 km) </Td> </Tr> <Tr> <Th> CSA </Th> <Td> 10,600 sq mi (27,600 km) </Td> </Tr> <Tr> <Th> Elevation </Th> <Td> 141 ft (43 m) </Td> </Tr> <Tr> <Th_colspan="2"> Population (2016) </Th> </Tr> <Tr> <Th> State capital </Th> <Td> 673,184 </Td> </Tr> <Tr> <Th> Estimate (2016) </Th> <Td> 673,184 </Td> </Tr> <Tr> <Th> Density </Th> <Td> 13,903 / sq mi (5,368 / km) </Td> </Tr> <Tr> <Th> Urban </Th> <Td> 4,180,000 (US: 10th) </Td> </Tr> <Tr> <Th> Metro </Th> <Td> 4,628,910 (US: 10th) </Td> </Tr> <Tr> <Th> CSA </Th> <Td> 8,041,303 (US: 6th) </Td> </Tr> <Tr> <Th> Demonym </Th> <Td> Bostonian </Td> </Tr> <Tr> <Th> Time zone </Th> <Td> EST (UTC − 5) </Td> </Tr> <Tr> <Th> Summer (DST) </Th> <Td> EDT (UTC − 4) </Td> </Tr> <Tr> <Th> ZIP Codes </Th> <Td> 53 ZIP codes (show) <Ul> <Li> 02108--02137, 02163, 02196, 02199, 02201, 02203, 02204, 02205, 02206, 02210, 02211, 02212, 02215, 02217, 02222, 02126, 02228, 02241, 02266, 02283, 02284, 02293, 02295, 02297, 02298, 02467 (also includes parts of Newton and Brookline) </Li> </Ul> </Td> </Tr> <Tr> <Th> Area codes </Th> <Td> 617 and 857 </Td> </Tr> <Tr> <Th> FIPS code </Th> <Td> 25 - 07000 </Td> </Tr> <Tr> <Th> GNIS feature ID </Th> <Td> 0617565 </Td> </Tr> <Tr> <Th> GDP </Th> <Td> USD 371 billion </Td> </Tr> <Tr> <Th> Website </Th> <Td> Boston.gov </Td> </Tr> </Table> <Tr> <Th_colspan="2"> Boston, Massachusetts </Th> </Tr>

When did boston become the capital of massachusetts