Transaction is a way of updating data in a Relational Database that make multiple updates at the same time and if one of them fail, the database rolls back all the changes that were made during that transaction, and the whole request will throw an error.