A man and two dogs are lucky to be alive after a car collided with a freight train near Two Wells, north of Adelaide on Tuesday.

The male driver was retrieved by the MedSTAR helicopter and was flown to the Royal Adelaide Hospital while two dogs that were inside the car at the time of the crash both escaped uninjured.

The car was approaching a train crossing on Temby Road, Two Wells, near Mallala Road when the driver hit the brakes and slid into the side of the train.

Emergency services were called about 2:30pm, with Country Fire Service volunteers attending the scene to free the trapped man from the car wreckage.

It is understood the man's injuries are not life-threatening.

The train driver was uninjured but the freight train sustained some damage.

There are no traffic restrictions in the area, and local police are investigating the crash.

The MAC rescue helicopter at the scene of a car versus train accident at Two Wells ( ABC News: Claire Campbell )

Neighbour rushed to the man's aid

Neighbour Robbie Van Groen was one of several people who rushed to the man's aid immediately after the crash and said it was a miracle the man wasn't more seriously injured.

"We just heard a pop and came out to find the car over there on the post on the fence," he said.

"We pulled the window back to make sure that we could see that [the man inside] was okay … he wasn't doing too bad, he was pretty coherent.

"But he didn't know where he was or what hit him.

"I think he'd want to get a cross lotto ticket after all this, I would."

Mr Van Groen said he saw the two dogs that were inside the car at the time and looked after one following the crash.

"We found one of the dogs sitting on the side and just looked after the dog … kept it warm and that," he said.

He said it wasn't the first time a car had collided with a train at the intersection of Mallala and Temby roads.