The MERN stack consists of four main components: MongoDB for the database, Express.js as a web application framework, React.js for the front end, and Node.js for the backend runtime environment.