Spain and China played to a scoreless draw Monday that advanced both squads to the round of 16 at the Women's World Cup.

Spain finished second in Group B behind Germany. Spain advanced to the knockout stage for the first time and will face the winner of Group F on Monday at Reims — likely the United States if the Americans win or draw in its final group match against Sweden.

China has advanced to the knockout stage at each of its seven World Cup appearances. It finished third in the group at 1-1-1.

Spain's Lucia Garcia goes up for a header during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)

Spain's Lucia Garcia goes up for a header during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)

Spain also finished 1-1-1.

La Roja's best chance came in the 39th minute but Peng Shimeng stopped Jennifer Hermoso's header off a cross from Virginia Torrecilla. China's goalkeeper also fended off Alexia Putellas' free kick in the 71st.

Peng got her fingertips on another shot from Hermoso in the 86th minute to deflect the ball over the net as Spain appeared to apply pressure in the waning minutes.

Spain's Jennifer Hermoso eyes the ball during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)

Spain's Jennifer Hermoso eyes the ball during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)

Two-time World Cup winner Germany, which defeated both Spain and China, finished atop Group B after a 4-0 victory over South Africa in Montpellier on Monday.

More AP soccer: https://apnews.com/FIFAWomensWorldCup and https://twitter.com/AP_Sports

China's Wang Yan, left, vies for the ball against Spain's Mariona Caldentey during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)

China's Wang Yan, left, vies for the ball against Spain's Mariona Caldentey during the Women's World Cup Group B soccer match between China and Spain at the Stade Oceane in Le Havre, France, Monday, June 17, 2019. (AP PhotoFrancisco Seco)