Hurghada is one of Egypt's most popular beach resorts. Photo: MOHAMED EL-SHAHED / AFP
“We can now sadly confirm that two German tourists died in the attack at Hurghada,” a foreign ministry statement said.
Friday's attack in the Red Sea resort left four others wounded.
The attacker, who had swum ashore, was arrested and questioned.
“We don't know his motives yet, he could be crazy or perturbed — it's too early to tell,” a senior interior ministry official told AFP.
In January 2016, three tourists in Hurghada were wounded in a stabbing assault by two assailants with apparent Islamic State group (Isis) sympathies.
There was no immediate claim of responsibility for Friday's stabbing.
Hurghada is one of Egypt's most popular beach resorts, especially with Ukrainians and European tourists.