During the beginning of the Buyid dynasty, their army consisted mainly of their fellow Daylamites, a warlike and brave people of mostly peasant origin, who served as foot soldiers. The Daylamites had a long history of military activity dating back to the Sasanian period, and had been mercenaries in various places in Iran and Iraq, and even as far as Egypt. The Daylamites, during a battle, normally bore a sword, a shield, and three spears. Furthermore, they were also known for their formidable shield formation, which was hard to break through.