In order to export oil, South Sudan relies on a pipeline to Port Sudan on Sudan's Red Sea coast, as South Sudan is a landlocked country, as well as the oil refining facilities in Sudan. In August 2012, Sudan and South Sudan agreed a deal to transport South Sudanese oil through Sudanese pipelines to Port Sudan.