Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A bizarre incident in which a young child was locked in a hotel safe was actually an accident during a game of hide-and-seek, police said on Thursday.

Canadian cops launched a hunt for the parents after learning that staff at a Howard Johnson in Niagara Falls had been called to rescue the child from the floor safe on Tuesday morning.

Authorities said the family — who live in New Jersey — quickly left the hotel, and investigators wanted to find out how it had happened and make sure the baby was in good health.

Earlier Coverage: Cops Hunt Parents After Baby Locked in Hotel Safe

After learning they were the subject of a cross-border search, the parents called police on Wednesday evening.

"It appears that while the family was vacationing in Niagara Falls, the young child was accidently locked inside the safe during a game of hide and seek between siblings," Niagara Regional Police said in a statement. "The child was found to be in good health and this investigation is now closed."

Although police were initially told the child in question was an infant, they have since learned she was 3 years old and that her older sibling was 11.