Hazarbed (meaning "the commander of thousand"), also known as hazaruft, was a Sasanian office which functioned as the commander of the royal guard.
The title is first attested in the Achaemenid Empire in its Old Persian form, hazāra-pati (from *hazāra- "thousand" and *pati- "chief").
The hazarbed controlled units of guards which were enlisted from royal families of the Sasanian Empire. One of the units that the hazarbed controlled was the pushtigban bodyguard, while other times it would be the palace guards (darigan), or in some cases other units, such as the 4,000 Daylamite guard which served the last great Sasanian king, Khosrau II (590-628). The hazarbed was in charge of the king's safety and the commander of the royal guard. The hazarbed also controlled the entrance of the kings palace, presented visitors to the king, was allowed to be given military command or used in negotiations. The hazarbed was also allowed in some cases to serve as the royal executioner.
During the reign of Shapur I (r. 240–270), the hazarbed may have briefly taken over the spahbed office, as it is not listed in the inscriptions of Shapur I. However, the spahbed office reappears in the inscriptions of Shapur's son Narseh (r. 293–302). The office of hazarbed is also mentioned in his inscriptions among many others.