Police allege the men chased the 21-year-old man from a Padbury address, striking him in the knees and head with a hammer when he attempted to flee about 10.30pm on July 5.
Joondalup Detectives Senior Sergeant Brad Burnett alleged the men held the man captive in a vehicle and were driving to Wangara to cause him further harm.
Patrol police stopped the vehicle after considering it suspicious when they saw it driving through an industrial area late at night.
Sen-Sgt Burnett said officers detained the men and called detectives to investigate. The alleged victim was hospitalised with head wounds.
Get in front of tomorrow's news for FREE
Journalism for the curious Australian across politics, business, culture and opinion.
READ NOWA 27-year-old Butler man and 31-year-old Tapping man were charged with deprivation of liberty, assault occasioning bodily harm and unlawful wounding.
The older man was also charged with possession of methamphetamine with intent to sell or supply.
They are due to appear in Joondalup Magistrates Court later this month.