A man is in custody after allegedly driving at a police officer and ramming a police car before crashing into a petrol bowser in Alice Springs.

Northern Territory police said it was very fortunate no one was seriously injured in the incident which happened about 1:00am on Friday.

Superintendent Louise Jorgensen said the 38-year-old man was doing burnouts in a black 4WD when a police officer approached him at the petrol station, only to have the man allegedly drive at the officer.

"Unfortunately, he found himself being targeted," Ms Jorgensen said.

The man then allegedly rammed the sergeant's police vehicle twice before ramming a fuel bowser and another civilian vehicle.

He also allegedly drove at a group of people.

Superintendent Jorgensen said the man then allegedly drove at an unmarked police car that had come to assist.

She said the man drove off at speed through the CBD, allegedly colliding with another car.

"It was so fortunate the 21-year-old driver of this vehicle was not injured nor was any other member of the public," Superintendent Jorgensen said.

The man was eventually taken into custody and is expected to face multiple charges.