MVC stands for Model-View-Controller.
Model View Controller is a pattern for dividing software into three components: Model, View and Controller. This makes it easier to work together and the code is easier to read & understand. It emphasizes a separation between the software’s business logic and display.

Model
The model is a class that represents the application’s data and business logic. It manages the data, performs calculations, and makes decisions relevant to the application.
Each “entity” in the database structure has its own model class; for example, an online store has a model class for users, a model class for items, a model class for comments and so on.
The model classes ensure that data is loaded and saved in the database.
View
The view is responsible for displaying the data. These are, for example, templates for displaying the website using HTML and CSS. It is important to note that the view does not implement any logic, i.e. there are no database queries and no checking of values. The view only takes care of displaying the application.
Variables declared in the controller can also be used in the view.
Controller
The controller class is the intermediary between the model and the view. It receives user input and forwards it to the model in order to process the data. The controller then updates the view to display the new data.
For example, the controller receives the login data from the view, which the controller checks to see whether the user exists and whether the password is correct. If all entries were correct, the controller triggers the display of the next page.
The methods defined in the model can now be used in the controller.
