Boston is the capital of Massachusetts where Cambridge is a metropolitan city situated in Middlesex County as a major residential area of Boston.