A Wyoming Highway Patrol office was nearly hit by a semi-truck as it careened off the highway.

The semi-truck was traveling near Rawlins, Wyoming on Interstate 80 when the incident happened recently, according to the Wyoming Highway Patrol.

Officials say that the semi-truck and its trailer lost control and ran off the roadway onto the median.

Video shared by the highway patrol shows the semi-truck coming within feet of hitting the trooper, who was able to run in the opposite direction of the truck.

NYC BUILDING SUPERINTENDENT, PAL INDICTED FOR MURDER OF GREAT-GRANDMOTHER FOUND BEATEN, BOUND IN APARTMENT

Wyoming highway

A Wyoming Highway Patrol trooper was nearly hit by a semi-truck recently while it was going off of the highway. (Wyoming Highway Patrol )

Road conditions at the time of the incident appear to have been less than ideal, with snow covering part of the highway.

TWO FLORIDA CORRECTIONS OFFICERS ARRESTED, ACCUSED OF THROWING HOT WATER ON INMATES

Officials say that the semi-truck and its trailer lost control and ran off of the roadway onto the median.

Officials say that the semi-truck and its trailer lost control and ran off of the roadway onto the median. (Wyoming Highway Patrol )

The Wyoming Highway Patrol said that no law enforcement or first responders were injured.

CLICK HERE TO GET THE FOX NEWS APP

Wyoming video truck

Video shared by the highway patrol shows the semi-truck coming within feet of hitting the trooper, which was able to run in the opposite direction of the truck. (Wyoming Highway Patrol )

"Please remember that emergency personnel wants to be able to make it home safely at the end of their shift," the highway patrol said in a Facebook post. "Please slow down, and move over for emergency vehicles."