How was rwandan genocide resolved?

The civil war and genocide only ended when the Tutsi-dominated rebel group, the RPF, defeated the Hutu perpetrator regime and President Paul Kagame took control.