Original: However, when William had to go to military, she governed alone.
Simplified: But when William went to military, she governed alone.