The model in MVC contains the data-related logic that the user can request. It retrieves data from the database and hence performs that data related queries and returns the output back to the controller.