Usually, several barangays settled near each other to help one another in case of war or any emergency. The position of datu was passed on by the holder of the position to the eldest son or, if none, the eldest daughter. However, later, any member of the barangay could be chieftain, based on his talent and ability. He had the usual responsibilities of leading and protecting the members of his barangay. In turn, they had to pay tribute to the datu, help him till the land, and help him fight for the barangay in case of war.
In the old days, a datu had a council of elders to advise him, especially whenever he wanted a law to be enacted. The law was written and announced to the whole barangay by a town crier, called the umalohokan.
The People’s Commandments. Pre-college Filipino textbooks teach that the only written laws of pre-colonial Philippines that have survived are the Maragtas Code and the Code of Kalantiaw, both prepared in Panay. Some historians believe that the Maragtas Code was written by Datu Sumakwel, one of the chieftains from Borneo who settled there. As for the Code of Kalantiaw, it was said to have been promulgated by the third chief of Panay and possibly a descendant of Datu Sumakwel, Rajah Kalantiaw, in 1433. W. Henry Scott, however, has disputed the authenticity of the Code of Kalantiaw.
Classes of Society. There were four classes of society. They were the ruling class (datu), the freemen and notable persons (maharlika), the commoners (timawa), and the dependents and slaves (alipin). The alipin were of two kinds: the aliping namamahay, who were household servants, and the aliping