What is the difference between a relational database and a non-relational database?

A relational database stores data in tables that are related to each other by fields. A non-relational database stores data in documents or collections of key-value pairs.