Definition from Wiktionary, the free dictionary
From the slang expression having one's head up one's ass, thus, wearing the ass as a hat. The term is extended to people who are clueless or bumbling, who don't understand what is going on.
asshat (plural asshats)
- (pejorative, slang, vulgar) an obnoxiously ignorant person; a fool.
- See also Wikisaurus:idiot