Beam transfer, such as injection into or extraction from an accelerator, is one of the most critical moments in terms of machine protection in a high-intensity machine. Special equipment is used and machine protection aspects have to be taken into account in the design of the beam transfer concepts. A brief introduction of the principles of beam transfer and the equipment involved will be given in this lecture. The main concepts of machine protection for injection and extraction will be presented, with examples from the CERN SPS and LHC.