How does a nation go bankrupt ?

I’ve heard several candidates claim that by spending too much we go bankrupt? how is a nation with our economic status exactly go bankrupt ?

I’ve never taken an economics course so this idea of a nation going bankrupt is very confusing to me.
Yeah but don’t we always spend more than we have, and just have [...]