Massachusetts justices of the peace are appointed by the Governor of the state and confirmed by the council for a seven year term. They are appointed in the town they live in. Each town is allowed one justice of the peace for every 5,000 residents. They volunteer their services for the community and often witness documents such as statutory declarations, affidavits and land title documents. A justice of the peace may also solemnize a marriage anywhere in Massachusetts.