What is the difference between a nonimmigrant visa and an immigrant visa?

Nonimmigrant visas are for temporary stays in the US, such as for tourism, medical treatment, work, or study, while immigrant visas are for individuals who intend to live permanently in the US.