diff --git a/var/spack/repos/builtin/packages/mariadb/package.py b/var/spack/repos/builtin/packages/mariadb/package.py
index 11df1fc7283d10722917f0d05e6cea24b1808871..a16919192a4929adffaa65c5c2c4031d25655073 100644
--- a/var/spack/repos/builtin/packages/mariadb/package.py
+++ b/var/spack/repos/builtin/packages/mariadb/package.py
@@ -52,6 +52,7 @@ class Mariadb(CMakePackage):
     depends_on('msgpack-c')
     depends_on('openssl')
     depends_on('openssl@:1.0', when='@:10.1')
+    depends_on('krb5')
 
     conflicts('%gcc@9.1.0:', when='@:5.5')