China aims for net-zero carbon emissions by 2060, and an emissions peak before 2030. This will reduce its consumption of coal for power generation and steel making. Simultaneously, China aims for improved energy security, primarily with expanded domestic coal production and transport infrastructure.Here, we analyze effects of both these pressures on seaborne coal imports, with a purpose-built model of China's coal production, transport, and consumption system with installation-level geospatial and technical detail. This represents a 1000-fold increase in granularity versus earlier models, allowing representation of aspects that have previously been obscured.We find that reduced Chinese coal consumption affects seaborne imports much more strongly than domestic supply. Recent expansions of rail and port capacity, which reduce costs of getting domestic coal to Southern coastal provinces, will further reduce demand for seaborne thermal coal and amplify the effect of decarbonisation on coal imports. Seaborne coking coal imports are also likely to fall, because of expanded supply of cheap and high quality coking coal from neighbouring Mongolia.Reducing the consumption of coal, used primarily in power generation and steelmaking, is a key element of net-zero emissions plans or other long-term low-emissions strategies. This will affect the market outlook for coal exporting countries, in particular as countries with domestic coal mining industries may seek to limit negative effects on domestic coal mining industries [1]. China's decarbonization plans are particularly relevant in this respect, as it is the world's largest consumer of both thermal and coking coal, and a large source of revenue for key exporters in the region, in particular Australia and Indonesia (Fig. 1).Global coal markets have been the subject of much earlier research, and China has been a focal country in most such studies given its dominant share in global coal production, consumption and imports. Yet, exactly how Chinese coal imports depend on domestic market and other developments remains poorly assessed.In particular, such previous studies have typically used linear cost optimization with so-called multiregional models, or node-and-link type models, to represent transport infrastructure. It's important to accurately account for transport in such analyses, given the large share of transport in the total cost of coal to consumers, and because of the restrictions imposed by technical transport capacities of this infrastructure such as railways and ports. However, previous work for such analyses has always used highly simplified networks, with even the most granular models using a few dozen nodes representing continents in global analysis, or provinces in China-focused analyses. These nodes conflate provincial-level production and demand into single points, and inter-provincial transport infrastructure into single links. This casts doubt on just how accurately transport costs and capacity limits are really considered, and therefore how accurately the rel...