Exclude a category from the loop on your home page

function exclude_categories($query) {
  if ( $query->is_home ) {
    $query->set('cat', '-1,-5,-10');
  }
  return $query;
}
add_filter('pre_get_posts', 'exclude_categories');

Source