How does impeachment work?

What would it take to impeach a president?