A CMOS inverter is a fundamental building block of digital integrated circuits. It consists of a PMOS (P-type Metal-Oxide-Semiconductor) transistor and an NMOS (N-type Metal-Oxide-Semiconductor) transistor connected in series between the power supply and ground.