When did Pharaoh Cleopatra of Egypt rule?

She ruled Egypt as Queen between 51 BC and 30 BC
she was the last member of the Ptolemy family who took over Egypt after the death of Alexander the great about 300 years before Cleopatra.