What is the difficulty or problem? What troubles or ails you? For example, You look upset-what's the matter? or Can you tell me what's the matter with my car? This idiom uses matter in the sense of "the essence of something," in this case a problem. It was first recorded in 1469. Also see what's with.