Sudan said on Sunday says it would close its border with South Sudan within days if its neighbour did not expel militant groups, the government told state media.
Sudan regularly accuses its neighbour of backing insurgents in the Darfur, Blue Nile and South Kordofan regions that run along its southern border.
South Sudan split away from Sudan in 2011 after decades of civil war fuelled by ethnic divides and disputes over oil.
The border, regularly crossed by traders and pastoralists, was closed after the 2011 split and only re-opened last January.
Speaking to state media on Sunday, Kamal Ismail, a minister of state in the foreign ministry, said South Sudan had pledged to expel the militant groups within 21 days during a visit last month.
Khartoum would re-seal the border if its neighbour did not meet this promise, Ismail said.
The position of the border, particularly in the contested Abyei area, has been a constant source of tension, as has the legal status of southerners left living in the north and vice versa.
Sign up for Ghana Star News to receive daily email alerts of breaking news in Ghana. GhanaStar.com is your source for all Ghana News. Get the latest Ghana news, breaking news, sports, politics, entertainment and more about Ghana, Africa and beyond.