MacMach is a discontinued prototype operating system developed by Carnegie Mellon University (CMU). It is a proof-of-concept for natively booting the Mach 3.0 microkernel on Macintosh computers, and for hosting Mac applications as a Mach process. CMU had already invented Mach, which runs the rest of the operating system based on the 4.3BSD Unix personality as a user-space server rather than in the kernel, and MacMach simultaneously adds the System 7 personality. The system virtualizes the classic Mac OS, running System 7 as a contained Mach task to support standard Macintosh productivity software alongside Unix tools.
Mach decouples Unix from the kernel. MacMach boots the native Mach 3.0 microkernel, which runs 4.3BSD as one task and the entire Macintosh graphical environment and applications as another task. Mach's virtualization layer allows one computer and display to have BSD running the X Window System alongside unmodified Macintosh applications, such as Microsoft Excel and MacDraw. Support is limited to Motorola 68020 and Motorola 68030-based hardware with a paged memory management unit (PMMU), specifically select configurations of the Macintosh II, IIx, IIcx, IIci, IIfx, and SE/30.
CMU released the source code on CD-ROM in 1992 for approximately . Unlike the competing MachTen, which is a commercially supported product, MacMach is a research distribution with restrictive licensing. Because the system relies on the original 4.3BSD codebase, users are legally required to hold an AT&T UNIX System V source license. MacUser noted this restriction makes the system inaccessible to most general users.
Following the settlement of the USL v. BSDi lawsuit and the release of unencumbered 4.4BSD-Lite, the MacMach project was abandoned. However, CMU had launched MacMach to support Macintosh II (alongside IBM) on the institution's new Andrew Project, a network-distributed and platform-independent personal computing platform, and Apple representatives indicated its experimental purposes and the unlikelihood of the company's commercial use of such an outside operating system.
In April 1994, CMU posted this to Usenet:
Apple later redirected its microkernel efforts toward the OSF Research Institute for the development of MkLinux.