As a noun, a stupidity is a stupid idea, remark or action.
Stupidity is the antonym of intelligence and is synonym with imbecility, betise and folly.
In the English language, stupidity comes from French stupidité which comes from the Latin stupiditas.