All it took was some peace and quiet.

As a zoo in Hong Kong closed to the public amid the coronavirus pandemic, two giant pandas who hadn't mated after a decade of attempts finally did the deed Monday morning.

Ocean Park said its 14-year-old giant pandas, female Ying Ying and male Le Le, had been showing signs for a couple of weeks that they were entering the breeding season.

About 9 a.m. Monday, the two pandas marked "the first success since the two giant pandas began attempts at natural mating a decade ago," Ocean Park said in a statement.

Zoo officials hope the mating will bring a pregnancy later in the year for Ying Ying. The zoo said the gestation period for giant pandas is 72 to 324 days, though the World Wildlife Fund puts the gestation period at 95 to 160 days.

Peace out, panda! Why Bei Bei leaving the National Zoo hits so hard for so many

The zoo said a pregnancy can't be detected on an ultrasound until 14 to 17 days before birth.

"The successful natural mating process today is extremely exciting for all of us, as the chance of pregnancy via natural mating is higher than by artificial insemination," Michael Boos, Ocean Park's executive director in zoological operations and conservation, said in a statement.

"We hope to bear wonderful pregnancy news to Hong Kongers this year and make further contributions to the conservation of this vulnerable species."

Giant pandas held in captivity around the world take part in breeding programs to boost their population. For years, the species was considered "endangered" and only recently was recategorized as "vulnerable" by the IUCN Red List of Threatened Species.

Pandas reach sexual maturity at ages 5 to 7, Ocean Park says. Ying Ying and Le Le arrived in Hong Kong in 2007 but failed to mate naturally since attempts began in 2010.

Beginning in late March, Ying Ying began playing in the water in her habitat more often as Le Le was "leaving scent-markings around his habitat" and looking for Ying Ying's scent, the zoo said.

"Such behaviours are consistent with those common during breeding season," the zoo said in a statement.

Pandas in general are solitary and can be aggressive toward each other when in the same space. However, according to the San Diego Zoo in California, there are two exceptions: mating season and mothers with cubs.

According to the San Diego Zoo, the window for panda mating is small: A female is receptive to breeding for just two to three days.

Follow USA TODAY's Ryan Miller on Twitter @RyanW_Miller