The order, which will come into effect on Saturday and remain in force for two weeks, was given as Spain watches more than 280 new outbreaks, with virus cases tripling in the past fortnight.
Nearly half of all new cases have been in Catalonia, where just a week ago, officials urged nearly four million residents of metropolitan Barcelona to stay home unless absolutely necessary.
Friday's order by the region's civil protection agency also banned musical events with dance floors and imposed a midnight curfew on gambling establishments, casinos, bingo halls, bars and restaurants and their terraces, and music bars.
Barely a month after Spain ended its months-long state of emergency, new infections have been rising, with health officials increasingly pointed to nightlife as fertile ground for the spread of the virus.
Earlier this week, the southeastern region of Murcia also ordered the closure of nightclubs unless they had an outdoor terrace space for customers.
The closure came a month after Barcelona's nightclubs and discos reopened but within days, regional officials had issued an order banning dancing unless you know your partner well.
Spain has been badly hit by the COVID-19 pandemic which has so far claimed 28,432 lives and infected more than 272,000 people.
France has also been worriedly watching the situation in Catalonia, with Prime Minister Jean Castex on Friday urging French nationals “to avoid going there until the health situation improves”.
For now, however, the border between France and Spain will remain open.