Kiwirail has been hauled before the court for allegedly failing to provide safe working conditions for staff and contractors.
Lawyers for the state-owned enterprise will appear at Auckland District Court on Thursday, with the company facing a maximum penalty of $500,000 after it was charged with four offences by Worksafe New Zealand.
The charges come after three incidents between June and August last year.
On June 17, digger driver Paul Anderson was critically injured while working on the Raurimu Spiral near Tongariro National Park.
The father of two, employed by contractor Downer, was hit by a northbound freight train and suffered a serious brain injury as a result.