A thunderstorm warning is issued by meteorological agencies when severe thunderstorms with the potential for damaging winds, hail, and heavy rain are imminent or occurring in a specific area. It alerts residents to take precautions and seek shelter to ensure safety during the storm.