Four people have been taken to hospital with serious injuries after being confronted by two men with machetes in Rockhampton, in central Queensland.

Police say two men entered a home in Park Avenue around 7:30pm (AEST) and threatened six people with the machetes.

A struggle ensued, leaving two men and two women seriously injured.

They have been taken to Rockhampton base hospital.

Two other occupants, a man and a woman, received minor injuries and were treated at the scene.

Police say two men are assisting them with their investigation.