Metamask is a browser extension wallet for Ethereum and other compatible blockchains. It works by allowing users to store their private keys securely on their own devices, encrypted with a password. When users want to interact with decentralized applications or conduct transactions on the blockchain, Metamask acts as an intermediary, providing a user-friendly interface for users to sign and broadcast transactions using their stored private keys. This way, users can easily access and manage their Ethereum assets without having to install a full node or use a hardware wallet. Metamask also provides additional features such as the ability to switch between different networks and the ability to monitor and approve or reject contract interactions.