MongoDB is a non-relational database, while a relational database is a structured database that uses relations between tables to store and access data.
Example:
MongoDB: A MongoDB database stores data in a flexible JSON-like document structure. Each document can have different fields and data types, and the data can be nested within the document.
Relational Database: A relational database stores data in tables with rows and columns. Each row is a record, and each column is a field within that record. The data in each field must be of the same data type, and the data must be related by a common key.