What is the difference between an accountant and a bookkeeper?

I’m looking to understand the difference between a bookkeeper and an accountant. Could you explain the distinction?