An embedded system is a combination of hardware, software, and mechanical components designed to perform a dedicated function. It consists of a microprocessor or microcontroller along with other components like sensors, actuators, and memory. The microprocessor runs software that controls the system based on inputs from sensors or users. Examples of embedded systems include washing machines, air conditioners, and other devices that perform automated tasks. An embedded system is tailored for a specific application and does not require an operating system like a general purpose computer.