A body found in Marblehead, Massachusetts, last week has been identified as a man who had been missing for over a month.
The body was identified as 31-year-old Michael Gray, of Maine, according to a joint press release Saturday from Essex County District Attorney Paul F. Tucker, Marblehead Police Chief Dennis King, Salem Police Chief Lucas Miller and Peabody Police Chief Thomas Griffin.
The search for Gray originated in Peabody over a month ago, when he was reported missing by a family member on Dec. 11.
Peabody police said Gray was last seen after getting locked out of his vehicle. He called police for assistance opening his vehicle but when he still couldn't get in, he was given a ride to a family member's workplace on Main Street.
Get Boston local news, weather forecasts, lifestyle and entertainment stories to your inbox. Sign up for NBC Boston’s newsletters.
Earlier this month, dive teams with Salem police and Massachusetts State Police spent several days searching in the water off Juniper Beach in Salem after some clothing was found on the beach on Dec. 12. They focused on that site after finding a potential connection between Gray and the clothes, officials added.
Gray's body was found on Thursday afternoon by a pedestrian just across Salem Harbor, according to the Essex Country District Attorney. The woman was out walking her dog when she made the startling discovery on the shore near Edgemere Road, and she immediately went back to her house to call 911.
Authorities have not said how Gray died.
In-depth news coverage of the Greater Boston Area.
The investigation remains ongoing by Salem and Peabody police departments.