Its basically a block of code that is executed when a particular event/action has occurred. For instance, you might set up a trigger to validate your data before insertion into the table.