The Song dynasty, in securing maritime trade routes that ran from Southeast Asia into the Indian Ocean, had established fortified trade bases in the Philippines. It also sought to reclaim Vietnam and various northern heartland from the rivalling Jin dynasty, but the campaigns were unsuccessful.