The Ptolemaic dynasty (, Ptolemaioi), sometimes also known as the Lagids or Lagidae (, Lagidai, after Lagus, Ptolemy I's father), was a Macedonian Greek royal family which ruled the Ptolemaic Kingdom in Egypt during the Hellenistic period. Their rule lasted for 275 years, from 305 BC to 30 BC. They were the last dynasty of ancient Egypt.