She became the ruler by overthrowing her stepson Tutmosis II.
She was a remarkable woman, gaining power as regent for the young Tutmosis II her stepson before usurping it for herself by claiming divine right to rule.