How to clear the a block cache programmically I have a custom block that display some information from a custom configuration form.  I want the block to be cached, however, I want the block cache to be cleared every time I save the form.
I would like to do this in the submitForm function.  How do I go about and do this?
When displaying information from a config object add it also as cache dependency to the render array.
For example in a preprocess hook:
  $config = \Drupal::config('mymodule.settings');
  $config_value = $config-&gt;get('some_field');
  $variables['some_field'] = [
    '#markup' =&gt; $config_value,
  ];
  // add the cache tag, so that the output gets invalidated when the config is saved
  \Drupal::service('renderer')-&gt;addCacheableDependency($variables, $config);

See How to clear cache for config entity after making changes?
You don't need to change form submit because saving a config object automatically invalidates cache entries having this cache dependency (cache tag).

Another example based on the block code from your answer and using a different method to add the cache tag:
  /**
   * Config settings.
   *
   * @var string
   */
  const SETTINGS = 'uw_cbl_special_alert.settings';
  /**
   * {@inheritdoc}
   */
  public function build() {
    $config = \Drupal::config(static::SETTINGS);
    return [
      '#markup' =&gt; $config-&gt;get('message'),
      '#cache' =&gt; [
        'tags' =&gt; $config-&gt;getCacheTags(),
      ],
    ];
  }


Access caching
As asked in the comments, you can add cache dependencies to access results as well:
AccessResult::allowed()-&gt;addCacheableDependency($config)
AccessResult::forbidden()-&gt;addCacheableDependency($config)