Today, all of Samoa is united under its two principal royal families: the Sā Malietoa of the ancient Malietoa lineage that defeated the Tongans in the 13th century; and the Sā Tupua, Queen Salamasina's descendants and heirs who ruled Samoa in the centuries that followed her reign. Within these two principal lineages are the four highest titles of Samoa - the elder titles of Malietoa and Tupua Tamasese of antiquity as well as the newer Mata'afa and Tuimalealiifano titles who rose to prominence in 19th century wars that preceded the colonial period. These four titles form the apex of the Samoan matai system as it stands today.