As Hurricane Harvey bears down on the Texas coastline, the state government is calling in the cavalry. The Texas Division of Emergency Management, the state government’s disaster planning and response agency, is mobilizing more than 700 members of the Texas Air and Army National Guards in addition to the Texas State Guard at Gov. Greg Abbott’s request. The Air Force Reserve has relocated several C-5 Galaxy transport aircraft to Fort Bliss from Lackland Air Force Base to avoid the path of the Category 2 hurricane, according to ABC News, active duty service members have been deployed throughout the state to assist in emergency relief.

Hurricane Harvey captures the U.S. armed forces fulfilling one of its few major domestic duties: assisting state and local authorities with natural disaster preparedness and aiding in the aftermath of major catastrophes. Depending on the severity of the event, troops may be called simply to wait on standby, deliver supplies, or even carry out rescue missions. As for hurricanes, each branch has its own functions, and Task & Purpose compiled a number of images that illustrate what some of those missions are.

Here’s how the branches spring into action when a natural disaster looms large on the horizon:

Ahead of Hurricane Harvey, airmen help to track the storm’s path to better predict the kind of response will be required from the military.

hurricane harvey military response(U.S. Air Force photo/Staff Sgt. Heather Heiney)
Master Sgt. Erik Marcus, 53rd Weather Reconnaissance Squadron loadmaster, prepares  during a flight into Hurricane Harvey Aug. 24, 2017 out of Keesler Air Force Base, Mississippi.

Members of the active duty and Air National Guard can be called upon to evacuate aircraft to ensure they are protected from hurricane damage.

hurricane harvey military response(U.S. Air National Guard photo by Airman 1st Class Ashley Williams)
U.S. Air Force Tech. Sgt. Daniel Wayble, assigned to the 121st Maintenance Group, marshals A-10C Thunderbolt IIs during preparation for Hurricane Hermine in Columbus, Ohio, Sept. 1, 2016. Hurricane Hermine, a Category 1 hurricane, was the first hurricane to make landfall in Florida since 2005 before proceeding up the east coast of the United States.
U.S. Army photo
National Guardsmen help guide a rancher as he loads bundles of hay aboard a CH-47 Chinook helicopter to deliver to stranded livestock who have been trapped by the flooded salt-waters without food or fresh water since Hurricane Ike struck the Southwest coast of Louisiana, 2008.

Prior to a hurricane making landfall, soldiers plan evacuation routes in the event of an emergency.

hurricane harvey military response (U.S. Army National Guard photo by. Sgt. Brian Calhoun, 108th Public Affairs Detachment)
South Carolina National Guardsmen plan evacuation support as a part of Hurricane Matthew response efforts. Hurricane Matthew peaked as a Category 4 hurricane in the Caribbean and was projected to pass over the southeastern U.S., including the S.C. coast. Approximately 1,400 S.C. National Guard Soldiers and Airmen were activated Oct. 4, 2016, to support coastal evacuations after Governor Nikki Haley declared a State of Emergency.

In the wake of a hurricane, National Guardsmen are often called upon to assist residents, particular if the situation becomes dangerous.

hurricane harvey military response(U.S. Army National Guard photo by Staff Sgt. Jonathan Shaw, 382nd Public Affairs Detachment)
North Carolina Army National Guardsmen assist with evacuation efforts in Fayetteville, N.C., Oct. 08, 2016. Heavy rains caused by Hurricane Matthew have led to flooding as high as five feet in some areas.

The aftermath of a hurricane often leaves soldiers to work with first responders and residents to restore their towns and cities.

U.S. Army photo
Sgt. Lee Savoy, a Soldier with the 256th Brigade Special Troops Battalion, Lousiana National Guard, evacuates a child, Aug. 30, 2012 from the flood waters caused by Hurricane Isaac.
hurricane harvey military responsePhoto via DoD
U.S. Army Command Sgt. Maj. Russel Vickery, South Carolina National Guard State Command Sgt. Maj., surveys the flooded town of Nichols S.C., heavy rains caused by Hurricane Matthew flooded the town which caused the evacuation of all its residents, Oct. 10, 2016.

The Coast Guard prepares flight crews to act quickly in case of emergency, in the event that they are called on to perform rescue missions.

hurricane harvey military responseU.S. Coast Guard photo by Petty Officer 3rd Class Johanna Strickland.
Two MH-65 short-range aircraft sit prepped and ready as the Coast Guard prepares for response efforts at Air Station Corpus Christi in Corpus Christi, Texas, on Aug. 24, 2017. The Coast Guard is working closely with all local and state emergency operation centers and is establishing incident command posts to manage Coast Guard storm operations.

In the aftermath of a hurricane, the Coast Guard surveys the impacted areas.

hurricane harvey military responseU.S. Coast Guard photo by Petty Officer 2nd Class Cory J. Mendenhall.
Crewmembers from Coast Guard Station Charleston conduct a survey of Charleston harbor in the wake of Hurricane Matthew Oct. 8, 2016. Members of the media ride along to cover the operation and interview Coast Guard members.

Marines stationed nearby areas that are hit with hurricanes are trained to be on standby in the event of a catastrophe.

hurricane harvey military responseMarine Corps photo
Lt. Col. Douglas Seich addresses Marines on current operations and destructive weather procedures aboard Marine Corps Air Station Beaufort Oct. 5. The Marines currently on MCAS Beaufort are essential personnel needed to respond to potential scenarios that could arise in anticipation of Hurricane Matthew. Seich is the commanding officer of Headquarters and Headquarters Squadron.

Marines also help to administer disaster relief in the wake of hurricanes. This can include anything from supplying medical care to food.

hurricane harvey military response(U.S. Marine Corps photo by Cpl. Samuel Guerra)
U.S. service members from Joint Task Force (JTF) Matthew work together to ready supplies for delivery to Haitian locals affected by Hurricane Matthew at Port-au-Prince, Haiti, Oct. 11, 2016. JTF Matthew is a U.S. Southern Command lead humanitarian assistance, disaster relief effort in Haiti following Hurricane Matthew. Matthew was a category 4 hurricane that formed in the Western Atlantic Ocean and affected Haiti, eastern Cuba, and the Bahamas before moving up the southeast coast of the United States.

The Naval Meteorology and Oceanography Command tracks hurricanes before they make landfall.

hurricane harvey military responseNavy photo
Commander, Naval Meteorology and Oceanography Command (COMNAVMETOCCOM) and Oceanographer of the Navy Rear Adm. Tim Gallaudet (right) walks w/ Maj. Jon Brady towards a WC-130J to board a Hurricane Hunters flight on May 31, 2017, over the Gulf of Mexico in support of Naval Oceanography Unmanned Systems Operational Demonstration.

And sometimes hurricanes force sailors come up on dry land to help local residents rebuild their communities.

U.S. Navy photo
Equipment Operator 2nd Class Derrick Brown, from Benson, Vt., assigned to Naval Mobile Construction Battalion (NMCB) 11, directs a skid during Hurricane Sandy relief efforts in Staten Island, N.Y., ahead of a forecasted storm, 2012.