What is the difference between a biography and autobiography?

A biography is a written account of a person's life written by someone else, while an autobiography is a written account of a person's life written by the person themselves. In other words, a biography is written by an author who is not the subject of the book, while an autobiography is written by the subject themselves.