Two people have been critically injured in an accident involving two semi-trailers on the Warrego Highway, west of Ipswich.

It is understood the semi-trailers rolled and collided with several cars near a roadhouse at Hattonvale.

Officers are asking motorists to avoid the Warrego Highway between Ipswich and Gatton for at least four hours.