Marius invaded Numidia and brought the war to a quick end, capturing Jugurtha in the process.