Police had said the girl was taken by two teenagers believed to be armed with handguns.

State Police cancelled an Amber Alert issued on Tuesday after a missing 12-year-old girl has been found safe. Two teens are now facing charges.

Troopers say the investigation started Tuesday morning when state police received a report that 12-year-old McKenzie Wilson had gone missing in the town of Franklinville in Cattaraugus County.

Investigators soon linked Wilson to 18-year-old Joshua Monette due to a recent arrest. Monette could not be located, nor could a 16-year-old friend of his.

Shortly after, troopers learned a truck had been stolen not far from the 16-year-old's home and the 16-year-old's father reported a gun was missing from the home.

At that point, troopers issued an Amber Alert. Hours later, troopers were able to track down the missing girl and two suspects at an abandoned house near the suspect's residence. No one had been injured.

When issuing the Amber Alert, police stated the child was taken under circumstances that led them to believe she was in imminent danger of serious bodily harm or death.

On Tuesday night, both teens were charged with grand larceny, criminal possession of a weapon, criminal possession of stolen property and unlawful imprisonment (due to Wilson being younger than 16.

Monette is also being charged with endangering the welfare of a child.

Both Monette and the 16-year-old boy were arraigned in Town of Machias Court on Tuesday.

WGRZ reports all three individuals attend the same school, Randolph Academy.

— Includes reporting from News 10NBC affiliate WGRZ and The Associated Press