Vietnam and the Philippines are both at odds with China over its sweeping territorial claims and growing military presence in the South China Sea.

Vietnam and the Philippines agreed at the end of August to boost their defense links and deepen collaboration on maritime security.

The announcement came as Vietnam’s Defense Minister Phan Van Giang visited Manila for talks with his Philippine counterpart, Gilberto Teodoro.

Both ministers inked “letters of intent” to enhance their maritime and disaster response engagements. They also agreed to resolve disagreements peacefully and within the framework of international law.

An official security agreement is expected to be signed by the end of the year.

The announcement comes amid high tensions between the Philippines and China [over their territorial dispute in the South China Sea (SCS).