Scary moments for a pilot when they had to land on a freeway north of Black Canyon City on Wednesday evening.

According to the Department of Public Safety, the man who was piloting the plane was heading from St. George, Utah, to Mesas Falcon Field Airport when the Cessna 172s engine started having problems.

The man had to make an emergency landing somewhere and saw Interstate 17 was the best bet. The pilot safely landed the plane in the southbound lanes of I-17 near Sunset Point, the Arizona Department of Transportation said.

Shortly after, DPS troopers arrived and found the plane parked on the right shoulder. The pilot was the only one onboard and wasnt hurt. The plane wasnt damaged either, DPS said. The plane isnt blocking any lanes.