"We can now sadly confirm that two German tourists died in the attack at Hurghada," a foreign ministry statement said.
Yesterday'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 (IS) sympathies.
Hurghada is one of Egypt's most popular beach resorts, especially with Ukrainians and European tourists.
Disclaimer: No Business Standard Journalist was involved in creation of this content