The only crossing between Gaza and Egypt opened on Tuesday for 72 hours, allowing people to leave the Palestinian enclave for the first time since the novel coronavirus outbreak began.
The Rafah crossing in southern Gaza was closed in March, as Hamas that controls the strip, sought to guard against a major virus outbreak in the densely-populated territory with weak health infrastructure.
Rafah was opened for three days in April, but only to allow Gazans stranded abroad to return home. The crossing re-opened for limited two-way movement on Tuesday.
Gaza's interior ministry spokesman Iyad Al-Bazam said people who hold foreign passports, foreign residency permits or emergency medical needs "will be allowed to leave".
Hundreds of Gazans had assembled before dawn at a waiting room preparing to exit, AFP reporters said.
Gaza resident Hatem al-Mansi told AFP he needed medical care, but voiced concern about infection risks in Egypt, which has registered 95,000 COVID-19 cases, compared to just 81 in Gaza.
"There is a fear of being infected with COVID-19 in cars or buses in Egypt," he told AFP. "In Gaza, we don't have that problem."
Gaza, under an Israeli-enforced blockade since 2007, was uniquely protected against the coronavirus since access was already tightly controlled before the outbreak.
But the dire economic conditions and a poor healthcare system, partly caused by the blockade, also made Gaza especially vulnerable to the virus.
Hamas has maintained tight restrictions throughout the pandemic.
Anyone returning from Egypt will be placed in a dedicated quarantine facility for three weeks, said the head of infection control at Gaza's health ministry, Rami Al-Abadala.
"Every returnee will be given a mask and will be tested upon entry," he said.
A large contingent of police, doctors and nurses were stationed at Rafah early Tuesday to accomodate the returnees.