English and Scottish pet name for Margaret [q.v.], from Greek or Persian "pearl".
The Welsh name Megan and its spelling variants were probably derived from Meg.