What does Impeach Mean?

Like if a politician goes against the law, that would be impeach. Someone who accuses someone else for something. To challenge someone’s validity.