Abstract. This chapter provides a broad overview of the MAC protocols especially developed for sensor networks. These MAC protocols differ from typical WLAN access protocols in that they trade off performance (latency and throughput) for a reduction in energy consumption to maximize the lifetime of the network. This is in general achieved by duty cycling the radio, and it is the MAC layer that controls when the radio is switched on and off. An important consequence is that a MAC protocol needs to be aware of its neighbors' sleep/active schedules, since sending a message is only effective when the destination node is awake. An obvious solution is to have all nodes synchronize on one global schedule, so no separate neighbor state is required, which maps well onto the resource limitations of typical sensor nodes. However, grouping communication into small (active) periods increases the chance on collisions, hence, other forms of organization have been proposed. This chapter surveys, and details the historic development of, the three most common styles of medium access control for wireless sensor networks: random, slotted, and frame-based organization.1. Introduction. The research area of Wireless Sensor Networks, WSNs for short, is driven by the ongoing advances in digital circuitry leading to ever smaller computing systems. In their visionary "Smart Dust" paper [16], Pister et al. proposed to capitalize on this trend by combining sensors, a micro controller, and a radio into a tiny sensor node. Multiple nodes could then self-organize into a wireless network and collectively report information about their environment opening a whole new range of applications. Examples include unobtrusive habitat monitoring of wildlife, ad-hoc deployments for disaster management, precision agriculture, and tracking of goods and objects, to name a few.Although diverse in nature, the proposed application scenarios share a number of characteristics and constraints that define the research area of WSNs. First, nodes must operate for a number of years to make applications economically viable. This puts severe constraints on energy consumption, because nodes are usually battery powered and changing batteries is not an option. Second, also from a cost perspective, sensor networks must function autonomously without (much) external control. Third, the network must be resilient to errors of all kinds; nodes may die when running out of energy; radio communication may be distorted by external interference; and low-cost sensors may malfunction and produce erroneous readings. Finally, data -generated periodically or sparked by an external event -has to be relayed to a sink (gateway) node for further processing and for generating an appropriate response, respectively.The need for energy-efficient operation of a wireless network of resource-scarce devices has prompted the development of novel protocols in all layers of the communication stack. Given that the radio is the most power-consuming component of a typical sensor node, large gains can be ac...