IPA: /ʌnˈɡræmətɪkəl/
KK: /ʌnˈɡræmətɪkəl/
Not following the rules of grammar or standard language usage.
The sentence was ungrammatical, making it hard to understand.
Ungrammatical → It is formed from "un-" (meaning not) and "grammatical" (from Greek "grammatikos", meaning relating to grammar). The word "ungrammatical" means not conforming to the rules of grammar.
Think of 'not' ('un-') following the rules of 'grammar' ('grammatical') — that's why ungrammatical means something that doesn't follow grammar rules.