The Ptolemaic dynasty, also known as the Lagids or Lagidae, was a Macedonian Greek royal family who ruled over Egypt. Their rule lasted for 275 years, from 305 BC to 30 BC. They were the last dynasty of ancient Egypt.