The licensing effect, also known as self-licensing or moral licensing, is observed when people allow themselves to indulge in something bad after doing something good first.