diff --git a/build/emacs.tcl b/build/emacs.tcl
index af9fa088..0e1cbe49 100644
--- a/build/emacs.tcl
+++ b/build/emacs.tcl
@@ -58,6 +58,7 @@ respond ":EJ" "\033xgenerate\033emacs;kbdmac\033emacs1;kbdmac\r"
respond ":EJ" "\033xgenerate\033emacs;ledit\033emacs1;ledit\r"
respond ":EJ" "\033xgenerate\033emacs;lispt\033emacs1;lispt\r"
respond ":EJ" "\033xgenerate\033emacs;lsputl\033emacs1;lsputl\r"
+respond ":EJ" "\033xgenerate\033emacs;mazlib\033emacs1;mazlib\r"
respond ":EJ" "\033xgenerate\033emacs;modlin\033emacs1;modlin\r"
respond ":EJ" "\033xgenerate\033emacs;muddle\033emacs1;muddle\r"
respond ":EJ" "\033xgenerate\033emacs;page\033emacs1;page\r"
diff --git a/doc/games.md b/doc/games.md
index afebdd8b..e43358ee 100644
--- a/doc/games.md
+++ b/doc/games.md
@@ -20,6 +20,12 @@ a five-letter word. To play this, type `:jotto`.
This is Richard Greenblatt's chess program. Type `:chprog;ocm` to play.
For instructions, see CHPROG; OCM ORDER.
+### MAZLIB
+
+This is a maze game for EMACS. To play, start EMACS and type
+M-XLoad Library$mazlib, then
+M-X Maze Run.
+
### MLIFE
This is a Conway Game of Life by Mike Speciner. Type `:rwg;mlife` run
diff --git a/doc/programs.md b/doc/programs.md
index 5aabaf67..cd33033a 100644
--- a/doc/programs.md
+++ b/doc/programs.md
@@ -125,6 +125,7 @@
- MAGFRM, create tapes for use with MAGDMP.
- MAIL, Mail sending client.
- MAILT, allows editing mail (from :MAIL) in EMACS.
+- MAZLIB, maze game for EMACS.
- MCL, subsystem for compiling individual Macsyma files.
- METER, displays system metering information.
- MICRO, microcode assembler.
diff --git a/src/emacs/maze.maze b/src/emacs/maze.maze
new file mode 100755
index 00000000..342f3301
Binary files /dev/null and b/src/emacs/maze.maze differ
diff --git a/src/emacs1/mazlib.36 b/src/emacs1/mazlib.36
new file mode 100755
index 00000000..26f36175
Binary files /dev/null and b/src/emacs1/mazlib.36 differ