Police in Connecticut have canceled a multistate Amber Alert after three missing boys were found safe in Maine with their mother, who was taken into custody.

Authorities say the boys and their mother, 32-year-old Jackie Morris, were found Tuesday morning at a motel in Bangor, Maine.

Authorities are returning the boys to their father. Morris faces possible criminal charges.

Police had said they were concerned for the children’s safety.

Authorities said Morris has ties to Connecticut, Massachusetts, and Maine.

Relatives told police Morris has a history of mental health problems and recently returned to Connecticut after having lived in Maine. She was described as 5-foot-2 and 120 pounds with brown hair, blue eyes and a tattoo of a crucifix on the back of her neck. Police said she now may be homeless and living out of her car.

Morris and Lewis were involved in a child custody case in Rockville Superior Court that ended in November with a joint custody agreement that called for the boys to live with their father, while Morris had visitation rights, said Lewis’ lawyer, Benjamin K. Potok. Potok described the custody case as ‘‘slightly contentious.’’

Court records show Morris was living in Southwick, Massachusetts, during the custody case last year.