Magnetic gradient: a natural driver of solar eruptions