A 42-year-old man was beaten, burnt and robbed over a 20-hour period before managing to flee a house at Marsden in southeast Queensland, police say.

The man had arrived at the address in the Logan City suburb at around 10pm on Friday to ask about buying a motorcycle from people known to him but was allegedly detained against his will.

“The man was allegedly assaulted with unknown implements and burnt with an unknown substance during his ordeal, and had personal property stolen,” police said in a statement early on Sunday.

The man managed to escape at around 5pm on Saturday and raise the alarm before being taken to Beaudesert Hospital for treatment to bruises, lacerations and burns.

Two men aged 29 and 48 have been arrested and charged with torture, deprivation of liberty, acts intended to maim or disfigure, armed robbery in company using personal violence and assault occasioning bodily harm.

Both were denied bail to appear in the Southport Magistrates Court on Monday.