China on Thursday announced the resumption of diplomatic relations with Nicaragua after the Central American country broke off its longstanding ties with Taiwan.

In doing so, Managua switched allegiance to Beijing, aligning with its "one China" policy and leaving Taipei with just 14 formal allies.

China and Nicaragua “have decided to recognize each other and resume diplomatic relations at the ambassadorial level," China's foreign ministry said in a statement.

"The Government of Nicaragua recognizes and commits to abide by the one-China principle, severs the so-called 'diplomatic relations' with Taiwan, resumes diplomatic relations with the People's Republic of China, and undertakes that it shall no longer develop any official relations or official exchanges with Taiwan," it added.