A sound that is unpleasant and harsh to hear, or a framework of bars or wires close together; making you annoyed or irritated.
From Old French 'grate' (grill, framework), from Latin 'crates' (wicker, hurdle). The verb 'grate' (to annoy) comes separately from the scraping sound of grinding, probably imitative.
Try Another Word