Wenduling
Wenduling was a polity named in the Nanhai Zhi of 1304 as a vassal of Brunei. It is often identified with settlements in Mindanao's Cotabato valley, predecessors of Maguindanao, though some scholars locate it on Mindoro.
In the sixteenth century Sharif Kabungsuwan of Johor brought Islam up the Mindanao rivers, married into local chiefly families and founded the Sultanate of Maguindanao at Cotabato. Under Sultan Muhammad Kudarat it fought the Spanish and took Sarangani in 1625. The sultanate ceded Palawan to Spain in 1705.