Why did Cleopatra become the queen of Egypt?

Cleopatra became queen of Egypt because she was designated as queen in her father's will. When Cleo and her brother were at war, Caesar stepped in to try to calm things, but his actions only led to a war after which Caesar installed Cleopatra on the throne permanently.