Hatshepsut ruled in the New Kingdom, 18th dynasty. Her reign was between 1473BC- 1458 BC. She was not the first female ruler of Ancient Egypt. And I would like to point out that she was not a queen, she was a pharaoh.
Thutmose III ruled after her, i believe. He was the one who wanted to get rid of her so he could have the throne. she took over her husband's job in the first place because Thutmose III was too young...