A capacity market is a regulatory mechanism designed to ensure that electricity supply meets demand by providing financial incentives for maintaining reserve power capacity. It complements energy markets by remunerating power plants for being available to supply electricity during peak demand periods, thus enhancing grid reliability and preventing blackouts.