in vain is an adverb meaning "to no avail". It carries one recorded sense.
to no avail
“he looked for her in vain”
“the city fathers tried vainly to find a solution”
Definitions, synonyms and semantic relations for in vain come from Princeton University’s WordNet. Commonness is measured against a corpus of everyday English. Full sources and licences.