Wikipedia
MagSafe is a series of proprietary magnetically attached power connectors, originally introduced by Apple Inc. on January 10, 2006, in conjunction with the MacBook Pro at the Macworld Expo in San Francisco, California.
The connector is held in place magnetically so that if it is tugged — for example, by someone tripping over the cord — it will pull out of the socket without damaging the connector or the computer power socket, and without pulling the computer off the surface on which it is located. MagSafe works similarly to the magnetic power connectors that many deep fryers and Japanese countertop cooking appliances from the early 2000s have in order to avoid spilling their dangerously hot contents.
Apple owns ("Magnetic connector for electronic device", issued in 2007) and does not license the MagSafe connector or the patent.