What does "gente" mean?

Sooo, I searched and saw that people use it referring to "people", "us" or something like that, and in what situations should "gente" be used instead of "nós"?