The Cabeza de Barangay (Spanish: head of the barangay), also known as Teniente del Barrio in Spanish, was the leader or chief of a barangay in the Philippines during the Spanish colonial period. The post was inherited from the first datus who became cabezas de barangay when the many independent barangays became tributary vassals of the Spanish Crown. King Philip II of Spain, after whom the Philippines were named, decreed that the native nobility of the country should retain the honors and privileges they had before their conversion and subjection to the Spanish Crown. With the new form of government introduced by Spain, several existing neighboring barangays were combined to form a municipality and the Cabezas de Barangay participated in the governance of the new towns, forming part of the elite ruling class called the Principalía. From among their ranks the head of the town, the Gobernadorcillo or Capitan Municipal, was elected. Furthermore, only the members of their class could elect the Gobernadorcillo.
The office of the Cabeza de Barangay was hereditary. The cabecería, i.e., headship of the barangays, was a more ancient institution of native nobilities that pre-dates the Spanish conquest and was doubtless hereditary. The increase of population during the Spanish regime consequently needed the creation of further cabecerías and election of new cabezas. The emergence of the mestizo culture (both Spanish mestizos and Chinese mestizos) had also necessitated this and even the subsequent creation of separate institutions or offices of Gobernadorcillos for the different mestizo groups and for the natives living in the same territories or cities with large population. When the office of the Cabeza de Barangay fell vacant due to the lack of an heir or the resignation of the incumbent, a substitute was appointed by the superintendent if the barangay was near the capital of the province. In distant areas, the appointment was done by the respective delegate, based on the recommendation of the Gobernadorcillo and other cabezas. The cabezas, their wives, and first-born sons were exempt from the payment of tribute to the Spanish Crown.