Queensland police are yet to establish the motive for a machete attack that left six people wounded, four seriously.

Three victims of a machete attack in Queensland are recovering from surgery as police try to establish the motive for the horrific crime.

The three were among six people who were viciously attacked by two masked men who broke into a Rockhampton house on Wednesday night.

Four of the six were rushed to hospital with serious but not life-threatening wounds.

Three of the four have since had surgery for wounds to their arms, legs and bodies.

The other two victims were treated at the scene for less serious wounds.

One of the six victims was also sexually assaulted during the attack, it’s been alleged.

Two men have been remanded in custody as police try to establish a motive for the crime, which has left neighbours shocked.

“At this point in time we can’t quite pinpoint the trigger or the catalyst for this incident,” Acting Senior Sergeant Paul Elliot said on Thursday.

The victims – three men and three women – are aged in their late teens to early twenties.

Neighbours have told of police descending on the Macalister Street home in the north Rockhampton suburb of Park Avenue.

“It was just a sea of flashing lights, and police and the ambulance taking people away,” one neighbour told the ABC.

Police say the attackers had their faces covered during the incident and allegedly stole money and mobile phones from the property.

The alleged attackers, aged 29 and 33, were arrested nearby soon afterwards.

“They were caught very, very close to the house,” Acting Snr Sgt Elliot said.

“One was in a car and one was on foot.”

The accused men were remanded in custody when they faced the Rockhampton Magistrates Court on charges including acts intended to cause grievous bodily harm, armed robbery and entering a dwelling with intent.

The 33-year-old is also facing a sexual assault charge.

The case has been adjourned to February 12.