By Kimberly Chin

Nike Inc. swung to a loss in the fiscal fourth quarter as sales were dragged by temporary store closures stemming from coronavirus-containment measures.

The Beaverton, Ore.-based company posted a loss of $790 million, or 51 cents a share, for the quarter ended May 31, compared with a profit of $989 million, or 62 cents a share, a year earlier. Analysts were expecting a GAAP loss of 8 cents a share, according to FactSet.

Sales fell to $6.31 billion from $10.18 billion a year earlier, missing analysts' expectations of $7.3 billion.

Write to Kimberly Chin at kimberly.chin@wsj.com