Why was Cleopatra queen?

Cleopatra was a queen because her father left the kingdom to her and her brother jointly. After the civil war with her brother, Julius Caesar made her the joint ruler with her remaining brother.