A gate is a fundamental building block of digital electronic circuits that performs logical operations on binary inputs to produce a binary output.