This question already has an answer here:

There is a sentence in my book

It was me that raised the alarm

I am completely confused with this construction. "I" is used with it but here "me" is placed.

Second confusion is "who" is used for living things but here "that" is used.

Is it grammatically correct? If yes please explain to me.

marked as duplicate by FumbleFingers, Andrew, Nathan Tuggy, Eddie Kal, Community Nov 7 '18 at 19:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What you're saying is that it should be, "It was I who raised the alarm"? – Andrew Nov 7 '18 at 17:42
  • You're quite right that "who" is only used for living things. But here "that" can be used for any referent. Except that at least some people would say it makes a difference whether the context is a restrictive or non-restrictive clause. – FumbleFingers Nov 7 '18 at 17:54
  • It's fine with accusative "me". Contrary to common believe, there is no rule of English requiring a nominative form where a pronoun is complement of the verb "be". With personal antecedents, there is a preference for "who" when the relativised element is subject (as in your example) and for the non-wh elsewhere. But it is just a preference: "It was me that raised the alarm" is perfectly grammatical. – BillJ Nov 7 '18 at 19:14

Browse other questions tagged or ask your own question.