diff --git a/networkd/templates/20-wired-routed.network.j2 b/networkd/templates/20-wired-routed.network.j2
index 66437c22d4901484398f4f9dc9a91616432577f0..7054162101e0394b6d8b632dc1666d77973627e9 100644
--- a/networkd/templates/20-wired-routed.network.j2
+++ b/networkd/templates/20-wired-routed.network.j2
@@ -19,7 +19,9 @@ IPForward=yes
 
 {% for route in network.routes|default([{'gateway': network.gateway}]) %}
 [Route]
+{% if route.gateway is defined %}
 Gateway={{ route.gateway }}
+{% endif %}
 {% if route.destination is defined %}
 Destination={{ route.destination }}
 {% endif %}